diff --git a/cypress/apiRequests/Channels.js b/cypress/apiRequests/Channels.js index 2dd730d2b..cb21f81c7 100644 --- a/cypress/apiRequests/Channels.js +++ b/cypress/apiRequests/Channels.js @@ -42,7 +42,7 @@ export function getChannels() { export function deleteChannel(channelId, targetChannelId) { const deleteChannelMutation = `mutation{ channelDelete(id: "${channelId}", input:{ - targetChannel: "${targetChannelId}" + channelId: "${targetChannelId}" }){ channel{ name diff --git a/cypress/apiRequests/Order.js b/cypress/apiRequests/Order.js index add292725..9714ee456 100644 --- a/cypress/apiRequests/Order.js +++ b/cypress/apiRequests/Order.js @@ -35,11 +35,11 @@ export function createDraftOrder( draftOrderCreate(input:{ user:"${customerId}" shippingMethod:"${shippingMethodId}" - channel: "${channelId}" + channelId: "${channelId}" ${getDefaultAddress(address, "shippingAddress")} ${getDefaultAddress(address, "billingAddress")} }){ - orderErrors{ + errors{ message } order{ diff --git a/cypress/integration/allEnv/discounts/vouchers.js b/cypress/integration/allEnv/discounts/vouchers.js index 58c13b490..35d01dc68 100644 --- a/cypress/integration/allEnv/discounts/vouchers.js +++ b/cypress/integration/allEnv/discounts/vouchers.js @@ -122,8 +122,7 @@ describe("Vouchers discounts", () => { }); }); - // Test should pass after fixing - SALEOR-1629 bug - xit("should create free shipping voucher", () => { + it("should create free shipping voucher", () => { const voucherCode = `${startsWith}${faker.datatype.number()}`; createVoucher({ diff --git a/cypress/integration/allEnv/homePage/homePageAnalitics.js b/cypress/integration/allEnv/homePage/homePageAnalitics.js index cbff052ba..41110c169 100644 --- a/cypress/integration/allEnv/homePage/homePageAnalitics.js +++ b/cypress/integration/allEnv/homePage/homePageAnalitics.js @@ -95,9 +95,7 @@ describe("Homepage analytics", () => { }); it("should all elements be visible on the dashboard", () => { - cy.pause(); - cy.visit(urlList.homePage); - cy.pause() + cy.visit(urlList.homePage) .softAssertVisibility(HOMEPAGE_SELECTORS.sales) .softAssertVisibility(HOMEPAGE_SELECTORS.orders) .softAssertVisibility(HOMEPAGE_SELECTORS.activity) diff --git a/cypress/steps/catalog/products/VariantsSteps.js b/cypress/steps/catalog/products/VariantsSteps.js index d8fd2c168..8986e674c 100644 --- a/cypress/steps/catalog/products/VariantsSteps.js +++ b/cypress/steps/catalog/products/VariantsSteps.js @@ -59,7 +59,9 @@ export function createVariant({ .type(sku) .get(VARIANTS_SELECTORS.addWarehouseButton) .click(); - cy.contains(VARIANTS_SELECTORS.warehouseOption, warehouseName).click(); + cy.contains(VARIANTS_SELECTORS.warehouseOption, warehouseName).click({ + force: true + }); cy.get(VARIANTS_SELECTORS.saveButton).click(); cy.get(BUTTON_SELECTORS.back).click(); selectChannelVariantInDetailsPage(channelName, attributeName);