Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Use .click({ force: true }); when closing attributes modal since if…
Browse files Browse the repository at this point in the history
… there are too many they are hiding the button

#233
  • Loading branch information
TheBestPessimist committed Jul 30, 2019
1 parent 7fec8a1 commit 9b62fee
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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);
});
}
Expand All @@ -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);
}

Expand Down

0 comments on commit 9b62fee

Please sign in to comment.