|
26 | 26 | <createData entity="ApiConfigurableProduct" stepKey="createConfigProduct">
|
27 | 27 | <requiredEntity createDataKey="simplecategory"/>
|
28 | 28 | </createData>
|
| 29 | + |
29 | 30 | <createData entity="productAttributeWithTwoOptions" stepKey="createConfigProductAttribute"/>
|
30 | 31 | <createData entity="productAttributeOption1" stepKey="createConfigProductAttributeOption1">
|
31 | 32 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
32 | 33 | </createData>
|
33 | 34 | <createData entity="productAttributeOption2" stepKey="createConfigProductAttributeOption2">
|
34 | 35 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
35 | 36 | </createData>
|
| 37 | + |
36 | 38 | <createData entity="AddToDefaultSet" stepKey="createConfigAddToAttributeSet">
|
37 | 39 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
38 | 40 | </createData>
|
| 41 | + |
39 | 42 | <getData entity="ProductAttributeOptionGetter" index="1" stepKey="getConfigAttributeOption1">
|
40 | 43 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
41 | 44 | </getData>
|
|
53 | 56 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
54 | 57 | <requiredEntity createDataKey="getConfigAttributeOption2"/>
|
55 | 58 | </createData>
|
| 59 | + |
56 | 60 | <createData entity="ConfigurableProductTwoOptions" stepKey="createConfigProductOption">
|
57 | 61 | <requiredEntity createDataKey="createConfigProduct"/>
|
58 | 62 | <requiredEntity createDataKey="createConfigProductAttribute"/>
|
59 | 63 | <requiredEntity createDataKey="getConfigAttributeOption1"/>
|
60 | 64 | <requiredEntity createDataKey="getConfigAttributeOption2"/>
|
61 | 65 | </createData>
|
| 66 | + |
62 | 67 | <createData entity="ConfigurableProductAddChild" stepKey="createConfigProductAddChild1">
|
63 | 68 | <requiredEntity createDataKey="createConfigProduct"/>
|
64 | 69 | <requiredEntity createDataKey="createConfigChildProduct1"/>
|
|
87 | 92 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="signUpNewUser">
|
88 | 93 | <argument name="Customer" value="$$createSimpleUsCustomer$$"/>
|
89 | 94 | </actionGroup>
|
90 |
| - |
| 95 | + <amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage"/> |
91 | 96 | <!-- Go to configurable product page -->
|
92 |
| - <click userInput="$$simplecategory.name$$" stepKey="clickOnCategoryName"/> |
93 |
| - <waitForPageLoad stepKey="waitForCategoryPageLoad"/> |
94 |
| - <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createConfigProduct.name$$)}}" stepKey="browseClickCategoryConfigProductView" after="clickOnCategoryName"/> |
95 | 97 | <waitForPageLoad stepKey="waitForProductPageLoad"/>
|
96 | 98 |
|
97 | 99 | <!-- Order product with single quantity -->
|
|
103 | 105 | <waitForElement selector="{{CheckoutShippingMethodsSection.next}}" time="30" stepKey="waitForNextButton"/>
|
104 | 106 | <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/>
|
105 | 107 | <click selector="{{CheckoutPaymentSection.placeOrder}}" stepKey="clickPlaceOrder"/>
|
106 |
| - |
| 108 | + <waitForPageLoad stepKey="waitForOrderSuccessPage1"/> |
| 109 | + <grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/> |
107 | 110 | <actionGroup ref="StorefrontSignOutActionGroup" stepKey="StorefrontSignOutActionGroup"/>
|
| 111 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/> |
108 | 112 |
|
109 |
| - <amOnPage url="{{StorefrontCategoryPage.url($$simplecategory.name$$)}}" stepKey="onCategoryPage"/> |
110 |
| - <waitForPageLoad stepKey="waitForCategoryLoad"/> |
| 113 | + <amOnPage url="{{AdminOrdersPage.url}}" stepKey="onOrdersPage"/> |
| 114 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask3"/> |
| 115 | + <fillField selector="{{AdminOrdersGridSection.search}}" userInput="{$grabOrderNumber}" stepKey="searchOrderNum"/> |
| 116 | + <click selector="{{AdminOrdersGridSection.submitSearch}}" stepKey="submitSearch"/> |
| 117 | + <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask4"/> |
111 | 118 |
|
| 119 | + <click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/> |
| 120 | + <click selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="clickInvoice"/> |
| 121 | + <click selector="{{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey="clickSubmitInvoice"/> |
| 122 | + <see selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="The invoice has been created." stepKey="seeSuccessMessage"/> |
| 123 | + <click selector="{{AdminOrderDetailsMainActionsSection.ship}}" stepKey="clickShip"/> |
| 124 | + <waitForLoadingMaskToDisappear stepKey="waitForShipLoadingMask"/> |
| 125 | + <click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="submitShipment"/> |
| 126 | + <waitForPageLoad stepKey="waitShipmentCreated"/> |
| 127 | + <actionGroup ref="logout" stepKey="logout"/> |
112 | 128 | <magentoCLI stepKey="runCron" command="cron:run --group='index'"/>
|
113 | 129 |
|
114 | 130 | <!-- Wait till cron job runs for schedule updates -->
|
115 | 131 | <wait time="60" stepKey="waitForUpdateStarts"/>
|
116 | 132 |
|
117 | 133 | <!-- Assert that product with single quantity is not available for order -->
|
118 |
| - <click selector="{{StorefrontCategoryProductSection.ProductTitleByName($$createConfigProduct.name$$)}}" stepKey="browseClickCategoryConfigProductView2" /> |
| 134 | + <amOnPage url="/{{ApiConfigurableProduct.urlKey}}2.html" stepKey="goToConfigProductPage2"/> |
| 135 | + <waitForPageLoad stepKey="waitForProductPageLoad2"/> |
119 | 136 | <dontSee userInput="$$createConfigProductAttributeOption1.option[store_labels][1][label]$$" selector="{{StorefrontProductInfoMainSection.optionByAttributeId($$createConfigProductAttribute.attribute_id$$)}}" stepKey="assertOptionNotAvailable" />
|
120 | 137 | </test>
|
121 | 138 | </tests>
|
0 commit comments