Skip to content

Commit 16d720c

Browse files
committed
MC-4418: Convert CreateProductAttributeEntityFromProductPageTest to MFTF
- Filter product grid before attempting to click a row
1 parent 448f838 commit 16d720c

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateCustomProductAttributeWithDropdownFieldTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
<waitForPageLoad stepKey="waitForProductIndexPageToLoad"/>
4848

4949
<!-- Select Created Product-->
50+
<actionGroup ref="filterProductGridBySku" stepKey="filterProductGridBySku">
51+
<argument name="product" value="$$createConfigProduct$$"/>
52+
</actionGroup>
5053
<click stepKey="openFirstProduct" selector="{{AdminProductGridSection.productRowBySku($$createConfigProduct.sku$$)}}"/>
5154
<waitForPageLoad stepKey="waitForProductToLoad"/>
5255

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateProductAttributeFromProductPageTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
<waitForPageLoad stepKey="waitForProductIndexPageToLoad"/>
4848

4949
<!-- Select Created Product-->
50+
<actionGroup ref="filterProductGridBySku" stepKey="filterProductGridBySku">
51+
<argument name="product" value="$$createSimpleProduct$$"/>
52+
</actionGroup>
5053
<click stepKey="openFirstProduct" selector="{{AdminProductGridSection.productRowBySku($$createSimpleProduct.sku$$)}}"/>
5154
<waitForPageLoad stepKey="waitForProductToLoad"/>
5255

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateProductAttributeRequiredTextFieldTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
<waitForPageLoad stepKey="waitForProductIndexPageToLoad"/>
4646

4747
<!-- Select Created Product-->
48+
<actionGroup ref="filterProductGridBySku" stepKey="filterProductGridBySku">
49+
<argument name="product" value="$$createSimpleProduct$$"/>
50+
</actionGroup>
4851
<click stepKey="openFirstProduct" selector="{{AdminProductGridSection.productRowBySku($$createSimpleProduct.sku$$)}}"/>
4952
<waitForPageLoad stepKey="waitForProductToLoad"/>
5053

0 commit comments

Comments
 (0)