diff --git a/cypress/e2e/products/productsVariants.js b/cypress/e2e/products/productsVariants.js index 8e1d03e05..89036f399 100644 --- a/cypress/e2e/products/productsVariants.js +++ b/cypress/e2e/products/productsVariants.js @@ -87,9 +87,6 @@ describe("As an admin I should be able to create variant", () => { `${urlList.products}${createdProduct.id}`, ).waitForProgressBarToNotBeVisible(); addVariantToDataGrid(name); - cy.get(PRODUCT_DETAILS.dataGridTable) - .should("be.visible") - .wait(1000); enterVariantEditPage(); selectChannelsForVariant(); createVariant({ diff --git a/cypress/support/pages/catalog/products/productDetailsPage.js b/cypress/support/pages/catalog/products/productDetailsPage.js index a5b6518e7..51f728aa1 100644 --- a/cypress/support/pages/catalog/products/productDetailsPage.js +++ b/cypress/support/pages/catalog/products/productDetailsPage.js @@ -151,7 +151,10 @@ export function addVariantToDataGrid(variantName) { } export function enterVariantEditPage() { - cy.get(BUTTON_SELECTORS.showMoreButton) + cy.get(PRODUCT_DETAILS.dataGridTable) + .should("be.visible") + .wait(1000) + .get(BUTTON_SELECTORS.showMoreButton) .click() .get(PRODUCT_DETAILS.editVariant) .click();