updated existing test cases to validate the import export flow with different user permissions (#8099)

This commit is contained in:
Pranav Kanade 2021-10-04 13:04:48 +05:30 committed by GitHub
parent 7298937e36
commit ca4541a415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,15 @@ describe("Export application as a JSON file", function() {
.first() .first()
.click({ force: true }); .click({ force: true });
cy.get(homePage.exportAppFromMenu).should("be.visible"); cy.get(homePage.exportAppFromMenu).should("be.visible");
cy.get("body").click(50, 40);
cy.get(homePage.applicationCard)
.first()
.trigger("mouseover");
cy.get(homePage.appEditIcon)
.first()
.click({ force: true });
cy.get(homePage.applicationName).click({ force: true });
cy.contains("Export Application").should("be.visible");
}); });
cy.LogOut(); cy.LogOut();
}); });
@ -119,6 +128,15 @@ describe("Export application as a JSON file", function() {
.first() .first()
.click({ force: true }); .click({ force: true });
cy.get(homePage.exportAppFromMenu).should("not.exist"); cy.get(homePage.exportAppFromMenu).should("not.exist");
cy.get("body").click(50, 40);
cy.get(homePage.applicationCard)
.first()
.trigger("mouseover");
cy.get(homePage.appEditIcon)
.first()
.click({ force: true });
cy.get(homePage.applicationName).click({ force: true });
cy.contains("Export Application").should("not.exist");
}); });
cy.LogOut(); cy.LogOut();
}); });