Skip to content

Commit 7539afe

Browse files
committed
Convert OnePageCheckoutJsValidationTest to MFTF
1 parent 7270d7e commit 7539afe

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="StorefrontOnePageCheckoutJsValidationTest">
12+
<annotations>
13+
<features value="Checkout"/>
14+
<title value="Js validation error messages must be absent for required fields after checkout start."/>
15+
<description value="Js validation error messages must be absent for required fields after checkout start."/>
16+
<group value="shoppingCart"/>
17+
<group value="mtf_migrated"/>
18+
</annotations>
19+
<before>
20+
<createData entity="_defaultCategory" stepKey="createCategory"/>
21+
<createData entity="ApiSimpleProduct" stepKey="createProduct">
22+
<requiredEntity createDataKey="createCategory"/>
23+
</createData>
24+
<actionGroup ref="AddSimpleProductToCart" stepKey="addToCartFromStorefrontProductPage">
25+
<argument name="product" value="$$createProduct$$"/>
26+
</actionGroup>
27+
<actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="guestGoToCheckoutFromMinicart"/>
28+
<waitForPageLoad stepKey="waitForCheckoutPage"/>
29+
</before>
30+
<after>
31+
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
32+
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
33+
</after>
34+
35+
<dontSeeElement selector="div .field-error" stepKey="dontSeeValidationErrors"/>
36+
</test>
37+
</tests>

dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/OnePageCheckoutJsValidationTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<data name="tag" xsi:type="string">severity:S2</data>
1313
<data name="products/0" xsi:type="string">catalogProductSimple::default</data>
1414
<data name="checkoutMethod" xsi:type="string">guest</data>
15+
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
1516
<constraint name="Magento\Checkout\Test\Constraint\AssertShippingAddressJsValidationMessagesIsAbsent" />
1617
</variation>
1718
</testCase>

0 commit comments

Comments
 (0)