Skip to content

Commit 3cfb373

Browse files
committed
MC-20071: Fix Skipped MFTF Tests From MC-17140: MAGETWO-98211, MC-56, MC-88
1 parent e3c7c2f commit 3cfb373

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,4 +1303,9 @@
13031303
<entity name="SimpleProductUpdatePrice16" type="product2">
13041304
<data key="price">16.00</data>
13051305
</entity>
1306+
<entity name="ProductWithTwoTextFieldOptions" type="product">
1307+
<var key="sku" entityType="product" entityKey="sku" />
1308+
<requiredEntity type="product_option">ProductOptionField</requiredEntity>
1309+
<requiredEntity type="product_option">ProductOptionField2</requiredEntity>
1310+
</entity>
13061311
</entities>

app/code/Magento/Catalog/Test/Mftf/Data/ProductOptionData.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<entity name="ProductOptionField" type="product_option">
1212
<var key="product_sku" entityType="product" entityKey="sku" />
1313
<data key="title">OptionField</data>
14+
<data key="sku">OptionField</data>
1415
<data key="type">field</data>
1516
<data key="is_require">true</data>
1617
<data key="sort_order">1</data>
@@ -21,6 +22,7 @@
2122
<entity name="ProductOptionField2" type="product_option">
2223
<var key="product_sku" entityType="product" entityKey="sku" />
2324
<data key="title">OptionField2</data>
25+
<data key="sku">OptionField2</data>
2426
<data key="type">field</data>
2527
<data key="is_require">true</data>
2628
<data key="sort_order">1</data>

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

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
<createData entity="ApiCategory" stepKey="createCategory"/>
2525
<!-- Create two products -->
2626
<createData entity="SimpleProduct2" stepKey="createFirstProduct"/>
27+
<updateData entity="ProductWithTwoTextFieldOptions" createDataKey="createFirstProduct" stepKey="updateFirstProductWithCustomOptions">
28+
<requiredEntity createDataKey="createFirstProduct"/>
29+
</updateData>
2730
<createData entity="ApiSimpleProduct" stepKey="createSecondProduct">
2831
<requiredEntity createDataKey="createCategory"/>
2932
</createData>
@@ -40,16 +43,6 @@
4043
<actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearProductGridFilter"/>
4144
<actionGroup ref="logout" stepKey="logoutOfAdmin"/>
4245
</after>
43-
<!--Go to product page -->
44-
<amOnPage url="{{AdminProductEditPage.url($$createFirstProduct.id$$)}}" stepKey="goToProductEditPage"/>
45-
<waitForPageLoad stepKey="waitForProductEditPageLoad"/>
46-
<actionGroup ref="AddProductCustomOptionField" stepKey="addCutomOption1">
47-
<argument name="option" value="ProductOptionField"/>
48-
</actionGroup>
49-
<actionGroup ref="AddProductCustomOptionField" stepKey="addCutomOption2">
50-
<argument name="option" value="ProductOptionField2"/>
51-
</actionGroup>
52-
<actionGroup ref="saveProductForm" stepKey="saveProduct"/>
5346
<!--Change second product sku to first product sku-->
5447
<amOnPage url="{{AdminProductEditPage.url($$createSecondProduct.id$$)}}" stepKey="goToProductEditPage1"/>
5548
<waitForPageLoad stepKey="waitForProductEditPageLoad1"/>
@@ -68,7 +61,7 @@
6861
<argument name="optionIndex" value="1"/>
6962
</actionGroup>
7063
<!--Save product and check sku changed message-->
71-
<actionGroup ref="saveProductForm" stepKey="saveProduct1"/>
64+
<actionGroup ref="saveProductForm" stepKey="saveSecondProduct"/>
7265
<see selector="{{AdminMessagesSection.notice}}" userInput="SKU for product $$createSecondProduct.name$$ has been changed to $$createFirstProduct.sku$$-1." stepKey="seeSkuChangedMessage"/>
7366
</test>
7467
</tests>

0 commit comments

Comments
 (0)