Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit f57f4b8

Browse files
MAGETWO-91524: "element.disabled is not a function"error is thrown when configurable products are generated with an attribute named "design"
- Update automated test
1 parent fbabf2c commit f57f4b8

File tree

3 files changed

+5
-26
lines changed

3 files changed

+5
-26
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/ActionGroup/ConfigurableProductAttributeNameDesignActionGroup.xml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -155,30 +155,11 @@
155155
<!--Click on OK button-->
156156
<click stepKey="clickOnOKButton" selector="{{CatalogProductsSection.okButton}}"/>
157157
<waitForPageLoad stepKey="waitFordAttributeDeleted"/>
158+
<see userInput="You deleted the product attribute." stepKey="seeDeletedTheProductAttributeMessage"/>
158159

159-
</actionGroup>
160-
161-
<actionGroup name="DeleteCreatedAttributeIfExist">
162-
163-
<!--Click on Stores item-->
164-
<click stepKey="clickOnStoresItem" selector="{{CatalogProductsSection.storesItem}}"/>
165-
<waitForPageLoad stepKey="waitForCatalogLoad"/>
166-
167-
<!--Click on Products item-->
168-
<click stepKey="clickOnStoresProductItem" selector="{{CatalogProductsSection.storesProductItem}}"/>
169-
<waitForPageLoad stepKey="waitForStoresProductPageLoad"/>
170-
171-
<!--Click on created Attribute item if it exist-->
172-
<conditionalClick selector="{{CatalogProductsSection.createdAttributeItem}}" dependentSelector="{{CatalogProductsSection.createdAttributeItem}}" visible="1" stepKey="clickOnCreatedAttributeItem"/>
173-
<waitForPageLoad stepKey="waitForCreatedAttributeLoad"/>
174-
175-
<!--Click on Delete Attribute item-->
176-
<conditionalClick stepKey="clickOnDeleteAttributeItem" selector="{{CatalogProductsSection.deleteAttributeItem}}" dependentSelector="{{CatalogProductsSection.deleteAttributeItem}}" visible="1"/>
177-
<waitForPageLoad stepKey="waitForDeletedDialogOpened"/>
178-
179-
<!--Click on OK button-->
180-
<conditionalClick stepKey="clickOnOKButton" selector="{{CatalogProductsSection.okButton}}" dependentSelector="{{CatalogProductsSection.okButton}}" visible="1"/>
181-
<waitForPageLoad stepKey="waitFordAttributeDeleted"/>
160+
<!-- Click Reset Filter button-->
161+
<click stepKey="clickResetFilterButton" selector="{{CatalogProductsSection.resetFilter}}"/>
162+
<waitForPageLoad stepKey="waitForAllFilterReset"/>
182163

183164
</actionGroup>
184165

app/code/Magento/ConfigurableProduct/Test/Mftf/Section/ConfigurableProductAttributeNameDesignSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<element name="createdAttributeItem" type="button" selector="//td[contains(@class, 'col-label') and normalize-space()='design']"/>
1919
<element name="deleteAttributeItem" type="button" selector="//*[@id='delete']"/>
2020
<element name="okButton" type="button" selector="//footer[@class='modal-footer']//*[contains(text(),'OK')]"/>
21-
2221
<element name="messageSuccessSavedProduct" type="button" selector="//div[@data-ui-id='messages-message-success']"/>
22+
<element name="resetFilter" type="button" selector="//span[contains(text(), 'Reset Filter')]"/>
2323
</section>
2424

2525
<section name="ConfigurableProductSection">

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/ConfigurableProductAttributeNameDesignTest.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
<before>
2222
<!-- Log in to Dashboard page -->
2323
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>
24-
<!-- This actionGroup should be deleted and Test will pass after fixing the bug.-->
25-
<actionGroup ref="DeleteCreatedAttributeIfExist" stepKey="deleteCreatedAttributeIfExist"/>
2624
</before>
2725

2826

0 commit comments

Comments
 (0)