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.
49 lines
1.3 KiB
49 lines
1.3 KiB
2 years ago
|
import { Page } from '@playwright/test'
|
||
|
import BasePage from '../Base';
|
||
|
|
||
|
export enum SettingTab {
|
||
|
TeamAuth = 'teamAndAuth',
|
||
|
AppStore = 'appStore',
|
||
|
ProjectMetadata = 'projMetaData',
|
||
|
Audit = 'audit',
|
||
|
}
|
||
|
|
||
|
export enum SettingsSubTab {
|
||
|
ERD = 'erd',
|
||
|
Miscellaneous = 'misc',
|
||
|
ACL = 'acl',
|
||
|
}
|
||
|
|
||
|
export class AccountPage extends BasePage {
|
||
|
// private readonly dashboard: DashboardPage;
|
||
|
// readonly audit: AuditSettingsPage;
|
||
|
// readonly appStore: AppStoreSettingsPage;
|
||
|
// readonly metaData: MetaDataPage;
|
||
|
// readonly miscellaneous: MiscSettingsPage;
|
||
|
// readonly erd: SettingsErdPage;
|
||
|
// readonly teams: TeamsPage;
|
||
|
// readonly acl: AclPage;
|
||
|
|
||
|
constructor(page: Page) {
|
||
|
super(page);
|
||
|
}
|
||
|
|
||
|
get() {
|
||
|
return this.rootPage.locator('body');
|
||
|
}
|
||
|
|
||
|
// async selectTab({ tab, subTab }: { tab: SettingTab; subTab?: SettingsSubTab }) {
|
||
|
// await this.get().locator(`li[data-menu-id="${tab}"]`).click();
|
||
|
// if (subTab) await this.get().locator(`li[data-menu-id="${subTab}"]`).click();
|
||
|
// }
|
||
|
//
|
||
|
// async selectSubTab({ subTab }: { subTab: SettingsSubTab }) {
|
||
|
// await this.get().locator(`li[data-menu-id="${subTab}"]`).click();
|
||
|
// }
|
||
|
//
|
||
|
// async close() {
|
||
|
// await this.get().locator('[data-nc="settings-modal-close-button"]').click();
|
||
|
// await this.get().waitFor({ state: 'hidden' });
|
||
|
// }
|
||
|
}
|