Skip to content

Commit 8d7970a

Browse files
committed
ACQE-6841: Remove individual variations configurable product
updated test script
1 parent 78a862a commit 8d7970a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
<actionGroup ref="GotoCatalogProductsPageActionGroup" stepKey="goToCatalogProductsPage"/>
5050
<actionGroup ref="GotoConfigurableProductPageActionGroup" stepKey="goToConfigurableProductPage"/>
5151
<!-- Assert Page title and Fill New product information-->
52-
<waitForText selector="{{AdminHeaderSection.pageTitle}}" userInput="New Product" stepKey="seeNewProductPageTitle"/>
5352
<waitForElementVisible selector="{{NewProduct.productName}}" stepKey="waitForProductNameToBeDisplayed"/>
5453
<fillField stepKey="fillInProductNameFields" selector="{{NewProduct.productName}}" userInput="{{ApiConfigurableProduct.name}}"/>
5554
<waitForElementVisible selector="{{NewProduct.productSku}}" stepKey="waitForProductSkuToBeDisplayed"/>
@@ -63,10 +62,10 @@
6362
<click stepKey="clickOnCreateConfigurationsButton" selector="{{NewProduct.createConfigurationButton}}"/>
6463
<waitForPageLoad stepKey="waitForCreateProductConfigurationPageToLoad"/>
6564
<!-- Click on create Attribute buttons-->
65+
<waitForElementClickable selector="{{NewProduct.createNewAttributeButton}}" stepKey="waitForClickOnCreateNewAttributeButton"/>
6666
<click stepKey="clickOnCreateNewAttributeButton" selector="{{NewProduct.createNewAttributeButton}}"/>
6767
<waitForPageLoad stepKey="waitForNewAttributePageLoad"/>
6868
<!--Fill option 1 -->
69-
<!--Fill option 1 -->
7069
<actionGroup ref="AdminCreateNewDefaultAttributeForAsWithOptionActionGroup" stepKey="fillOption1">
7170
<argument name="defaultLabel" value="{{sizeAttribute.default_label}}"/>
7271
</actionGroup>
@@ -77,18 +76,25 @@
7776
<click selector="{{AdminNewAttributePanel.saveAttribute}}" stepKey="clickSaveAttribute"/>
7877
<waitForPageLoad stepKey="waitForSavingAttribute"/>
7978
<!--Select color attribute and size attribute and click on Next-->
79+
<waitForElementClickable selector="{{AdminGridRow.checkboxByValue('color')}}" stepKey="waitToSelectColorAttribute"/>
8080
<click selector="{{AdminGridRow.checkboxByValue('color')}}" stepKey="selectColorAttribute"/>
8181
<actionGroup ref="AdminSelectAttributeInConfigurableAttributesGrid" stepKey="checkFirstAttribute">
8282
<argument name="attributeCode" value="{{sizeAttribute.attribute_code}}"/>
8383
</actionGroup>
8484
<waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitToClickOnNextButtonAfterSelectingAttribute"/>
8585
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButtonAfterSelectingAttribute"/>
8686
<!--Fill Black and Red options for color-->
87+
<waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.optionsWithTitle('Color')}}" stepKey="waitToAddNewColorBlack"/>
8788
<click selector="{{AdminCreateProductConfigurationsPanel.optionsWithTitle('Color')}}" stepKey="addNewColorBlack"/>
89+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="waitToSetNameBlack"/>
8890
<fillField userInput="{{colorDefaultProductAttribute2.name}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameBlack"/>
91+
<waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="waitToSaveBlackColor"/>
8992
<click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveBlackColor"/>
93+
<waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.optionsWithTitle('Color')}}" stepKey="waitToAddNewColorRed"/>
9094
<click selector="{{AdminCreateProductConfigurationsPanel.optionsWithTitle('Color')}}" stepKey="addNewColorRed"/>
95+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="waitToSetNameRed"/>
9196
<fillField userInput="{{colorProductAttribute2.name}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameRed"/>
97+
<waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="waitToSaveRedColor"/>
9298
<click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveRedColor"/>
9399
<!--Select sizes for size attribute and click on Next-->
94100
<waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.selectAllByAttribute(sizeAttribute.default_label)}}" stepKey="waitForSelectAllToBeClickableBySizeAttribute"/>

0 commit comments

Comments
 (0)