mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 03:56:51 +00:00
test: use closeTableTab() across files
Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
@@ -70,16 +70,6 @@ export class _loginPage {
|
||||
loginAndOpenProject(apiType, dbType) {
|
||||
loginPage.signIn(roles.owner.credentials);
|
||||
projectsPage.openConfiguredProject(apiType, dbType);
|
||||
// if (dbType === "mysql") {
|
||||
// projectsPage.openProject(staticProjects.externalREST.basic.name);
|
||||
// } else if (dbType === "xcdb") {
|
||||
// projectsPage.openProject(staticProjects.sampleREST.basic.name);
|
||||
// } else if (dbType === "postgres") {
|
||||
// projectsPage.openProject(staticProjects.pgExternalREST.basic.name);
|
||||
// }
|
||||
//
|
||||
// // close team & auth tab
|
||||
// cy.get('button.ant-tabs-tab-remove').should('exist').click();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,9 +98,7 @@ export class _projectsPage {
|
||||
cy.wait("@waitForPageLoad");
|
||||
|
||||
// close team & auth tab
|
||||
cy.getSettled("button.ant-tabs-tab-remove").should("be.visible").click();
|
||||
cy.get("button.ant-tabs-tab-remove").should("not.exist");
|
||||
cy.wait(2000);
|
||||
cy.closeTableTab();
|
||||
}
|
||||
|
||||
// Open existing project
|
||||
|
||||
Reference in New Issue
Block a user