mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-25 17:03:52 +00:00
24 lines
757 B
TypeScript
24 lines
757 B
TypeScript
import { BASE } from '../e2e.const';
|
|
import { NBrowser } from '../n-browser-interface';
|
|
|
|
const BASE_URL = `${BASE}`;
|
|
|
|
const SIDENAV = `side-nav`;
|
|
const EXPAND_PROJECT_BTN = `${SIDENAV} .projects .expand-btn`;
|
|
|
|
const PROJECT = `${SIDENAV} section.projects side-nav-item`;
|
|
const DEFAULT_PROJECT = `${PROJECT}:nth-of-type(1)`;
|
|
const DEFAULT_PROJECT_BTN = `${DEFAULT_PROJECT} > button:first-of-type`;
|
|
|
|
const TASK_LIST = `task-list`;
|
|
|
|
module.exports = {
|
|
async command(this: NBrowser) {
|
|
return this.loadAppAndClickAwayWelcomeDialog(BASE_URL)
|
|
.waitForElementVisible(EXPAND_PROJECT_BTN)
|
|
.click(EXPAND_PROJECT_BTN)
|
|
.waitForElementVisible(DEFAULT_PROJECT_BTN)
|
|
.click(DEFAULT_PROJECT_BTN)
|
|
.waitForElementVisible(TASK_LIST);
|
|
},
|
|
};
|