test: v2 corrections for view/ phase-1

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
This commit is contained in:
Raju Udava
2022-08-26 21:19:02 +05:30
parent c782dcc759
commit 8cad773251
7 changed files with 98 additions and 118 deletions

View File

@@ -238,10 +238,11 @@ export class _mainPage {
cy.getActiveModal().find('#form_item_from').should('exist').clear().type(from)
cy.getActiveModal().find('#form_item_host').should('exist').clear().type(host)
cy.getActiveModal().find('#form_item_port').should('exist').clear().type(port)
cy.getActiveModal().find('#form_item_secure').should('exist').clear().type(secure)
// cy.getActiveModal().find('#form_item_secure').should('exist').clear().type(secure)
cy.getActiveModal().find("button").contains("Save").click();
cy.toastWait('Successfully installed and email notification will use SMTP configuration');
settingsPage.closeMenu()
};
resetSMTP = () => {
@@ -251,6 +252,7 @@ export class _mainPage {
cy.getActiveModal().find("button").contains("Confirm").click();
cy.toastWait("Plugin uninstalled successfully");
settingsPage.closeMenu()
};
shareView = () => {
@@ -365,7 +367,7 @@ export class _mainPage {
// one of the row would contain seggregation header ('other views)
if (5 == $tableRow[0].childElementCount) {
cy.wrap($tableRow).find(".nc-icon").last().click();
cy.wait(1000);
cy.wait(100);
}
})
.then(() => {

View File

@@ -68,6 +68,9 @@ export class _loginPage {
// standard pre-project activity
//
loginAndOpenProject(apiType, dbType) {
cy.restoreLocalStorage();
cy.wait(1000);
loginPage.signIn(roles.owner.credentials);
if (dbType === "mysql") {
@@ -77,6 +80,12 @@ export class _loginPage {
} else if (dbType === "postgres") {
projectsPage.openProject(staticProjects.pgExternalREST.basic.name);
}
// kludge: wait for page load to finish
cy.wait(2000);
// close team & auth tab
cy.get('button.ant-tabs-tab-remove').should('exist').click();
cy.wait(1000);
}
}