Skip to content

Commit 313e6b2

Browse files
committed
MC-31083: [FT] [MFTF] Fix test AdminCreateImageSwatchTest - delete created swatch attribute in after
1 parent e87e421 commit 313e6b2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminDeleteProductAttributeByLabelActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<description>Goes to the Admin Product Attributes grid page. Filters the grid for the provided Product Attribute (Label). Deletes the Product Attribute from the grid. Validates that the Success Message is present.</description>
1414
</annotations>
1515
<arguments>
16-
<argument name="productAttributeLabel" type="string" defaultValue="ProductAttributeFrontendLabel.label"/>
16+
<argument name="productAttributeLabel" type="string" defaultValue="{{ProductAttributeFrontendLabel.label}}"/>
1717
</arguments>
1818

1919
<amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="navigateToProductAttributeGrid"/>

app/code/Magento/Swatches/Test/Mftf/Test/AdminCreateImageSwatchTest.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
<actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteConfigurableProduct">
2828
<argument name="sku" value="{{BaseConfigurableProduct.sku}}"/>
2929
</actionGroup>
30-
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteProductAttribute">
31-
<argument name="productAttributeLabel" value="{{ProductAttributeFrontendLabel.label}}"/>
32-
</actionGroup>
30+
<actionGroup ref="AdminDeleteProductAttributeByLabelActionGroup" stepKey="deleteProductAttribute"/>
3331
<actionGroup ref="NavigateToAndResetProductAttributeGridToDefaultViewActionGroup" stepKey="resetProductAttributeFilters"/>
3432
<actionGroup ref="logout" stepKey="logoutFromAdmin"/>
3533
</after>
@@ -107,7 +105,7 @@
107105
<actionGroup ref="FillMainProductFormActionGroup" stepKey="fillProductForm">
108106
<argument name="product" value="BaseConfigurableProduct"/>
109107
</actionGroup>
110-
<searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$$createCategory.name$$]" stepKey="fillCategory"/>
108+
<searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$createCategory.name$]" stepKey="fillCategory"/>
111109

112110
<!-- Create configurations based off the Image Swatch we created earlier -->
113111
<click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickCreateConfigurations"/>
@@ -147,7 +145,7 @@
147145
</assertContains>
148146

149147
<!-- Go to the product listing page and see text swatch options -->
150-
<amOnPage url="$$createCategory.custom_attributes[url_key]$$.html" stepKey="goToCategoryPageStorefront"/>
148+
<amOnPage url="$createCategory.custom_attributes[url_key]$.html" stepKey="goToCategoryPageStorefront"/>
151149
<waitForPageLoad stepKey="waitForProductListingPage"/>
152150

153151
<!-- Verify the storefront -->

0 commit comments

Comments
 (0)