fix: undo spec test changes.

This commit is contained in:
Arsalan 2022-04-04 19:17:02 +05:30
parent b995983adf
commit 197554917d
2 changed files with 3 additions and 6 deletions

View File

@ -9,9 +9,7 @@ describe("Modal Widget Functionality", function() {
it("1. [Bug]- 11415 - Open Modal from button and test scroll", () => {
cy.PublishtheApp();
cy.get(widgetsPage.widgetBtn)
.closest("div")
.click({ force: true });
cy.get(".t--widget-buttonwidget button").click({ force: true });
cy.get(".t--modal-widget").should("exist");
cy.get("span:contains('Close')").should("not.be.visible");
cy.get(".t--modal-widget")

View File

@ -116,10 +116,9 @@ describe("Container Widget Functionality", function() {
cy.PublishtheApp();
// Verify Widget Button by clicking on it
cy.get(widgetsPage.widgetBtn)
.closest("div")
cy.get(`${widgetsPage.widgetBtn}`)
.first()
.click({ force: true });
.click();
// Verify the click on first button
cy.get(commonlocators.toastmsg).contains(items[0].last_name);
});