From 9b62fee6e19c0d56dff494dbeff05223189fa27b Mon Sep 17 00:00:00 2001 From: TheBestPessimist Date: Tue, 30 Jul 2019 14:27:38 +0300 Subject: [PATCH] Use `.click({ force: true });` when closing attributes modal since if there are too many they are hiding the button https://github.com/metasfresh/metasfresh-e2e/issues/233 --- .../integration/a/change_product_prices_and_add_a_new_one.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/a/change_product_prices_and_add_a_new_one.js b/cypress/integration/a/change_product_prices_and_add_a_new_one.js index b17607e0..8aed4d02 100644 --- a/cypress/integration/a/change_product_prices_and_add_a_new_one.js +++ b/cypress/integration/a/change_product_prices_and_add_a_new_one.js @@ -307,7 +307,7 @@ function createProductPriceWithAttributes(productName) { cy.get('.form-field-M_AttributeSetInstance_ID').click(); cy.selectInListField(attributeName1, attributeValue1, false, RewriteURL.ATTRIBUTE); cy.selectInListField(attributeName2, attributeValue1, false, RewriteURL.ATTRIBUTE); - cy.get('.form-field-M_AttributeSetInstance_ID').click(); // save the attributes + cy.get('.form-field-M_AttributeSetInstance_ID').click({ force: true }); // save the attributes cy.waitUntilEverythingIsSaved(true); }); } @@ -321,7 +321,7 @@ function editProductAttributes(productName, productID) { cy.selectInListField(attributeName1, attributeValue2, false, RewriteURL.ATTRIBUTE); cy.selectInListField(attributeName2, attributeValue2, false, RewriteURL.ATTRIBUTE); - cy.get('.form-field-M_AttributeSetInstance_ID').click(); // save the attributes + cy.get('.form-field-M_AttributeSetInstance_ID').click({ force: true }); // save the attributes cy.waitUntilEverythingIsSaved(true); }