1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13:00

refactoring reverApp

This commit is contained in:
MihailHadzhiev2022 2022-06-13 13:10:11 +03:00
parent 9731f48f5b
commit c25d5cebe1
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", () => { it("should try to revert an unpublished app", () => {
// Click revert icon // Click revert icon
cy.get(interact.TOP_RIGHT_NAV).within(() => { 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(() => { cy.get(interact.SPECTRUM_MODAL).within(() => {
// Enter app name before revert // Enter app name before revert
@ -45,7 +45,7 @@ filterTests(['smoke', 'all'], () => {
cy.addComponent("Elements", "Button") cy.addComponent("Elements", "Button")
// Click Revert // Click Revert
cy.get(interact.TOP_RIGHT_NAV).within(() => { 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(() => { cy.get(interact.SPECTRUM_DIALOG_GRID).within(() => {
// Click Revert // Click Revert
@ -61,8 +61,8 @@ 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(interact.TOP_RIGHT_NAV).within(() => {
cy.get("[aria-label='Revert']").click({ force: true }) cy.get(interact.AREA_LABEL_REVERT).click({ force: true })
}) })
// Enter incorrect app name // Enter incorrect app name
cy.get(interact.SPECTRUM_DIALOG_GRID).within(() => { cy.get(interact.SPECTRUM_DIALOG_GRID).within(() => {

View file

@ -110,7 +110,7 @@ export const SPECTRUM_MENU_ITEM_LABEL = ".spectrum-Menu-itemLabel"
//revertApp //revertApp
export const TOP_RIGHT_NAV = ".toprightnav" 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" export const ROOT = ".root"
//quertLevelTransformers //quertLevelTransformers