diff --git a/cypress/support/customCommands/softAssertions/index.js b/cypress/support/customCommands/softAssertions/index.js index 397162633..71a84fab6 100644 --- a/cypress/support/customCommands/softAssertions/index.js +++ b/cypress/support/customCommands/softAssertions/index.js @@ -133,6 +133,7 @@ Cypress.Commands.add( Cypress.Commands.add("softExpectSkeletonIsVisible", () => { cy.get(SHARED_ELEMENTS.circularProgress).should("not.exist"); + cy.get(SHARED_ELEMENTS.progressBar).should("be.visible"); cy.get("body").then($body => { if ($body.find(SHARED_ELEMENTS.skeleton).length) { cy.softAssertVisibility(SHARED_ELEMENTS.skeleton); diff --git a/cypress/support/pages/discounts/vouchersPage.js b/cypress/support/pages/discounts/vouchersPage.js index d03c67780..9222287b4 100644 --- a/cypress/support/pages/discounts/vouchersPage.js +++ b/cypress/support/pages/discounts/vouchersPage.js @@ -1,7 +1,6 @@ import { VOUCHERS_SELECTORS } from "../../../elements/discounts/vouchers"; import { BUTTON_SELECTORS } from "../../../elements/shared/button-selectors"; -import { voucherDetailsUrl } from "../../../fixtures/urlList"; -import { urlList } from "../../../fixtures/urlList"; +import { urlList, voucherDetailsUrl } from "../../../fixtures/urlList"; import { ONE_PERMISSION_USERS } from "../../../fixtures/users"; import { createCheckoutWithVoucher } from "../../api/utils/ordersUtils"; import { selectChannelInDetailsPages } from "../channelsPage"; @@ -57,7 +56,7 @@ export function createVoucher({ } cy.get(BUTTON_SELECTORS.confirm) .click() - .confirmationMessageShouldDisappear(); + .confirmationMessageShouldAppear(); } export function setVoucherDate({