|
84 | 84 | <actionGroup ref="StorefrontCheckoutWithMultipleAddressesActionGroup" stepKey="checkoutWithMultipleAddresses"/> |
85 | 85 |
|
86 | 86 | <!-- Check Ship to Multiple Address Page is opened--> |
87 | | - <wait time="10" stepKey="waitForAddressPage"/> |
| 87 | + |
| 88 | + <waitForPageLoad stepKey="waitForAddressPage"/> |
| 89 | + |
88 | 90 | <seeInCurrentUrl url="{{MultishippingCheckoutAddressesPage.url}}" stepKey="seeShiptoMultipleAddressesPageIsOpened"/> |
89 | 91 |
|
90 | 92 | <!-- Assert Simple product has address in Send To section--> |
|
108 | 110 | <seeInCurrentUrl url="{{MultishippingCheckoutShippingPage.url}}" stepKey="seeSelectShippingMethodPageIsOpened"/> |
109 | 111 |
|
110 | 112 |
|
111 | | - <!-- Halt test execution for 10 seconds before continuing. --> |
112 | | - <wait time="10" stepKey="waitForElement"/> |
| 113 | + <!-- wait for selector --> |
| 114 | + <waitForElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingmethods($$createSimpleProduct.name$$)}}" stepKey="waitForShippingMethodsVisible"/> |
| 115 | + |
113 | 116 | <!-- See Shipping Method available ONLY for Simple product--> |
114 | 117 | <seeElement selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.shippingmethods($$createSimpleProduct.name$$)}}" stepKey="ShippingMethodForSimpleProduct"/> |
115 | 118 |
|
|
121 | 124 | <waitForPageLoad stepKey="waitForCheckoutShippingToolbarPageLoad"/> |
122 | 125 |
|
123 | 126 | <!-- See Billing Information Page is opened--> |
124 | | - <wait time="10" stepKey="waitForUrl"/> |
125 | 127 | <seeInCurrentUrl url="{{MultishippingCheckoutBillingPage.url}}" stepKey="seeBillingPageIsOpened"/> |
126 | 128 |
|
127 | 129 | <!-- Check Page contains customer's billing address--> |
|
135 | 137 | <conditionalClick selector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorder}}" dependentSelector="{{StorefrontMultishippingCheckoutAddressesToolbarSection.checkmoneyorder}}" visible="true" stepKey="selectCheckmoPaymentMethod"/> |
136 | 138 |
|
137 | 139 | <!-- Select Payment method e.g. "Check / Money Order" and click Go to Review Your Order --> |
138 | | - <wait time="10" stepKey="waitforReviewOrderButton"/> |
| 140 | + |
| 141 | + <waitForElement selector="{{StorefrontMultishippingCheckoutBillingToolbarSection.goToReviewOrder}}" stepKey="waitForElementgoToReviewOrder"/> |
| 142 | + |
139 | 143 | <click selector="{{StorefrontMultishippingCheckoutBillingToolbarSection.goToReviewOrder}}" stepKey="clickGoToReviewOrder"/> |
140 | 144 |
|
141 | 145 |
|
|
179 | 183 | </test> |
180 | 184 | </tests> |
181 | 185 |
|
| 186 | + |
0 commit comments