mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
753 B
28 lines
753 B
2 years ago
|
import BasePage from '../../../../Base';
|
||
|
import { ToolbarPage } from '..';
|
||
|
import { ToolbarActionsErdPage } from './Erd';
|
||
2 years ago
|
|
||
|
export class ToolbarActionsPage extends BasePage {
|
||
|
readonly toolbar: ToolbarPage;
|
||
|
readonly erd: ToolbarActionsErdPage;
|
||
|
|
||
|
constructor(toolbar: ToolbarPage) {
|
||
|
super(toolbar.rootPage);
|
||
|
this.toolbar = toolbar;
|
||
|
this.erd = new ToolbarActionsErdPage(this);
|
||
|
}
|
||
|
|
||
|
get() {
|
||
2 years ago
|
return this.rootPage.locator(`[data-testid="toolbar-actions"]`);
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
// todo: use enum
|
||
2 years ago
|
async click(label: string) {
|
||
|
await this.get().locator(`span:has-text("${label}")`).click();
|
||
|
}
|
||
2 years ago
|
|
||
|
async clickDownloadSubmenu(label: string) {
|
||
|
await this.rootPage.locator(`div[class="nc-project-menu-item"]:has-text("${label}")`).click();
|
||
|
}
|
||
2 years ago
|
}
|