mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 16:26:54 +00:00
refactor: rename project and base
- Rename `Project` => `Base` - Rename `Base` => `Source` - Remove `db` from data/meta api endpoints - Add backward compatibility for old apis - Migrations for renaming table and columns Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -14,16 +14,16 @@ export class ProjectMenuObject extends BasePage {
|
||||
}
|
||||
|
||||
async toggle() {
|
||||
await this.rootPage.locator('[data-testid="nc-project-menu"]').click();
|
||||
await this.rootPage.locator('[data-testid="nc-base-menu"]').click();
|
||||
}
|
||||
|
||||
async click({ menu, subMenu }: { menu: string; subMenu: string }) {
|
||||
const pMenu = this.rootPage.locator(`.nc-dropdown-project-menu:visible`);
|
||||
await pMenu.locator(`div.nc-project-menu-item:has-text("${menu}"):visible`).click();
|
||||
const pMenu = this.rootPage.locator(`.nc-dropdown-base-menu:visible`);
|
||||
await pMenu.locator(`div.nc-base-menu-item:has-text("${menu}"):visible`).click();
|
||||
await this.rootPage.waitForTimeout(2000);
|
||||
|
||||
if (subMenu) {
|
||||
await this.rootPage.locator(`div.nc-project-menu-item:has-text("${subMenu}"):visible`).click();
|
||||
await this.rootPage.locator(`div.nc-base-menu-item:has-text("${subMenu}"):visible`).click();
|
||||
await this.rootPage.waitForTimeout(1000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user