1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-20 21:59:43 +02:00
planka/client/tests/acceptance/pages/HomePage.js

20 lines
404 B
JavaScript
Raw Normal View History

import Config from '../Config.js';
export default class HomePage {
constructor() {
this.url = Config.BASE_URL;
this.userActionSelector = 'div.menu > a:last-child';
this.logOutSelector = 'a:has-text("Log Out")';
}
async navigate() {
await page.goto(this.url);
}
async logout() {
await page.click(this.userActionSelector);
await page.click(this.logOutSelector);
}
}