import Planka upstream

This commit is contained in:
xiaojibeier
2026-07-18 11:48:22 +08:00
commit c26fd3b190
1564 changed files with 214813 additions and 0 deletions
@@ -0,0 +1,19 @@
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);
}
}