|
|
@ -10,7 +10,7 @@ filterTests(['smoke', 'all'], () => { |
|
|
it("should try to revert an unpublished app", () => { |
|
|
it("should try to revert an unpublished app", () => { |
|
|
// Click revert icon
|
|
|
// Click revert icon
|
|
|
cy.get(".toprightnav").within(() => { |
|
|
cy.get(".toprightnav").within(() => { |
|
|
cy.get(".spectrum-Icon").eq(1).click() |
|
|
cy.get("[data-cy='revert-application-topnav']").click({ force: true }) |
|
|
}) |
|
|
}) |
|
|
cy.get(".spectrum-Dialog-grid").within(() => { |
|
|
cy.get(".spectrum-Dialog-grid").within(() => { |
|
|
// Enter app name before revert
|
|
|
// Enter app name before revert
|
|
|
@ -33,11 +33,15 @@ filterTests(['smoke', 'all'], () => { |
|
|
cy.get(".spectrum-ButtonGroup").within(() => { |
|
|
cy.get(".spectrum-ButtonGroup").within(() => { |
|
|
cy.get(".spectrum-Button").contains("Publish").click({ force: true }) |
|
|
cy.get(".spectrum-Button").contains("Publish").click({ force: true }) |
|
|
}) |
|
|
}) |
|
|
|
|
|
cy.wait(1000) |
|
|
|
|
|
cy.get(".spectrum-ButtonGroup").within(() => { |
|
|
|
|
|
cy.get(".spectrum-Button").contains("Done").click({ force: true }) |
|
|
|
|
|
}) |
|
|
// Add second component - Button
|
|
|
// Add second component - Button
|
|
|
cy.addComponent("Elements", "Button") |
|
|
cy.addComponent("Elements", "Button") |
|
|
// Click Revert
|
|
|
// Click Revert
|
|
|
cy.get(".toprightnav").within(() => { |
|
|
cy.get(".toprightnav").within(() => { |
|
|
cy.get(".spectrum-Icon").eq(1).click() |
|
|
cy.get("[data-cy='revert-application-topnav']").click({ force: true }) |
|
|
}) |
|
|
}) |
|
|
cy.get(".spectrum-Dialog-grid").within(() => { |
|
|
cy.get(".spectrum-Dialog-grid").within(() => { |
|
|
// Click Revert
|
|
|
// Click Revert
|
|
|
@ -54,7 +58,7 @@ filterTests(['smoke', 'all'], () => { |
|
|
it("should enter incorrect app name when reverting", () => { |
|
|
it("should enter incorrect app name when reverting", () => { |
|
|
// Click Revert
|
|
|
// Click Revert
|
|
|
cy.get(".toprightnav").within(() => { |
|
|
cy.get(".toprightnav").within(() => { |
|
|
cy.get(".spectrum-Icon").eq(1).click({ force: true }) |
|
|
cy.get("[data-cy='revert-application-topnav']").click({ force: true }) |
|
|
}) |
|
|
}) |
|
|
// Enter incorrect app name
|
|
|
// Enter incorrect app name
|
|
|
cy.get(".spectrum-Dialog-grid").within(() => { |
|
|
cy.get(".spectrum-Dialog-grid").within(() => { |
|
|
|