File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
app/code/Magento/Catalog/Test/Mftf Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 12
12
<data key =" remove_image_notice" >The image cannot be removed as it has been assigned to the other image role</data >
13
13
<data key =" save_success" >You saved the product.</data >
14
14
</entity >
15
+ <entity name =" ProductWarningMessage" type =" message" >
16
+ <data key =" require_Message" >This is a required field.</data >
17
+ </entity >
15
18
</entities >
Original file line number Diff line number Diff line change 30
30
<after >
31
31
<!-- Customer logout -->
32
32
<actionGroup ref =" StorefrontCustomerLogoutActionGroup" stepKey =" customerLogout" />
33
+ <deleteData createDataKey =" createCustomer" stepKey =" deleteCustomer" />
33
34
<deleteData createDataKey =" createSimpleProduct" stepKey =" deleteSimpleProduct" />
34
35
</after >
35
36
<!-- Step4: Login as a customer -->
43
44
<!-- Add Product to Cart from product detail page -->
44
45
<click selector =" {{StorefrontProductActionSection.addToCart}}" stepKey =" addToCart" />
45
46
<!-- see custom option validation message -->
46
- <waitForText userInput =" This is a required field. " stepKey =" seeRequiredField" />
47
+ <waitForText userInput =" {{ProductWarningMessage.require_Message}} " stepKey =" seeRequiredField" />
47
48
<!-- Choose checkbox value1 -->
48
49
<actionGroup ref =" StorefrontAddSimpleProductCustomOptionCheckBoxActionGroup" stepKey =" selectCustomOptionCheckBoxForValue1" />
49
50
<!-- Step6: place order -->
61
62
<!-- Clicking View Order from My Orders Grid -->
62
63
<actionGroup ref =" StorefrontClickViewOrderLinkOnMyOrdersPageActionGroup" stepKey =" clickViewOrder" />
63
64
<!-- Clicking on Reorder link from Order Details Tab -->
65
+ <waitForElementClickable selector =" {{StorefrontCustomerOrderViewSection.reorder}}" stepKey =" waitForReorderButtonToBeClickable" />
64
66
<click selector =" {{StorefrontCustomerOrderViewSection.reorder}}" stepKey =" clickReorder" />
65
67
<actionGroup ref =" StorefrontCheckoutCheckProductActionGroup" stepKey =" checkProduct" >
66
- <argument name =" product" value =" $$createSimpleProduct$$" />
68
+ <argument name =" product" value =" $$createSimpleProduct$$" />
67
69
<argument name =" cartItem" value =" SimpleCartItem" />
68
70
</actionGroup >
69
71
</test >
You can’t perform that action at this time.
0 commit comments