refactoring reverApp

This commit is contained in:
MihailHadzhiev2022 2022-06-13 13:10:11 +03:00
parent 27173468cc
commit 58241c3ecb
2 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,7 @@ filterTests(['smoke', 'all'], () => {
it("should try to revert an unpublished app", () => {
// Click revert icon
cy.get(interact.TOP_RIGHT_NAV).within(() => {
cy.get("[aria-label='Revert']").click({ force: true })
cy.get(interact.AREA_LABEL_REVERT).click({ force: true })
})
cy.get(interact.SPECTRUM_MODAL).within(() => {
// Enter app name before revert
@ -45,7 +45,7 @@ filterTests(['smoke', 'all'], () => {
cy.addComponent("Elements", "Button")
// Click Revert
cy.get(interact.TOP_RIGHT_NAV).within(() => {
cy.get("[aria-label='Revert']").click({ force: true })
cy.get(interact.AREA_LABEL_REVERT).click({ force: true })
})
cy.get(interact.SPECTRUM_DIALOG_GRID).within(() => {
// Click Revert
@ -61,8 +61,8 @@ filterTests(['smoke', 'all'], () => {
it("should enter incorrect app name when reverting", () => {
// Click Revert
cy.get(".toprightnav").within(() => {
cy.get("[aria-label='Revert']").click({ force: true })
cy.get(interact.TOP_RIGHT_NAV).within(() => {
cy.get(interact.AREA_LABEL_REVERT).click({ force: true })
})
// Enter incorrect app name
cy.get(interact.SPECTRUM_DIALOG_GRID).within(() => {

View File

@ -110,7 +110,7 @@ export const SPECTRUM_MENU_ITEM_LABEL = ".spectrum-Menu-itemLabel"
//revertApp
export const TOP_RIGHT_NAV = ".toprightnav"
export const AREA_LAVEL_REVERT = "[aria-label=Revert]"
export const AREA_LABEL_REVERT = "[aria-label=Revert]"
export const ROOT = ".root"
//quertLevelTransformers