|
206 | 206 |
|
207 | 207 | <!-- 6. Go through checkout process and try to translate all labels that have red border with 'book' icon. Like you did it in step #4. --> |
208 | 208 | <!-- Check Progress Bar Shipping --> |
| 209 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.progressBarActive}}" stepKey="waitForProgressBarShipping"/> |
209 | 210 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertProgressBarShipping"> |
210 | 211 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.progressBarActive}}"/> |
211 | 212 | </actionGroup> |
|
221 | 222 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateProgressBarShipping3"/> |
222 | 223 |
|
223 | 224 | <!-- Check step title "Shipping Address" --> |
| 225 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.stepTitleShipping}}" stepKey="waitForShippingAddressTitle"/> |
224 | 226 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertShippingAddressTitle"> |
225 | 227 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.stepTitleShipping}}"/> |
226 | 228 | </actionGroup> |
|
236 | 238 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateShippingAddressTitle3"/> |
237 | 239 |
|
238 | 240 | <!-- Check button "Ship Here" --> |
| 241 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.buttonShippingHere}}" stepKey="waitForButtonShipHere"/> |
239 | 242 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertButtonShipHere"> |
240 | 243 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.buttonShippingHere}}"/> |
241 | 244 | </actionGroup> |
|
251 | 254 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateButtonShipHere3"/> |
252 | 255 |
|
253 | 256 | <!-- Check button "+ New Address" --> |
| 257 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.buttonNewAddress}}" stepKey="waitForButtonNewAddress"/> |
254 | 258 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertButtonNewAddress"> |
255 | 259 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.buttonNewAddress}}"/> |
256 | 260 | </actionGroup> |
|
266 | 270 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateButtonNewAddress3"/> |
267 | 271 |
|
268 | 272 | <!-- Check title "Shipping Method" --> |
| 273 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.titleShippingMethod}}" stepKey="waitForTitleShippingMethod"/> |
269 | 274 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertTitleShippingMethod"> |
270 | 275 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.titleShippingMethod}}"/> |
271 | 276 | </actionGroup> |
|
281 | 286 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateTitleShippingMethod3"/> |
282 | 287 |
|
283 | 288 | <!-- Check button "Next" --> |
| 289 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.buttonNext}}" stepKey="waitForButtonNext"/> |
284 | 290 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertButtonNext"> |
285 | 291 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.buttonNext}}"/> |
286 | 292 | </actionGroup> |
|
296 | 302 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateButtonNext3"/> |
297 | 303 |
|
298 | 304 | <!-- Check title "Order Summary" --> |
| 305 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.titleOrderSummary}}" stepKey="waitForTitleOrderSummary"/> |
299 | 306 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertTitleOrderSummary"> |
300 | 307 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.titleOrderSummary}}"/> |
301 | 308 | </actionGroup> |
|
311 | 318 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateTitleOrderSummary3"/> |
312 | 319 |
|
313 | 320 | <!-- Check text "Item in Cart"--> |
| 321 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.itemsInCartText}}" stepKey="waitForItemsInCartText"/> |
314 | 322 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertItemsInCartText"> |
315 | 323 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.itemsInCartText}}"/> |
316 | 324 | </actionGroup> |
|
330 | 338 | <actionGroup ref="StorefrontCheckoutForwardFromShippingStepActionGroup" stepKey="gotoPaymentStepBeforeTranslate"/> |
331 | 339 |
|
332 | 340 | <!-- Check Progress Bar Review & Payments --> |
| 341 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.progressBarActive}}" stepKey="waitForProgressBarReviewAndPayments"/> |
333 | 342 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertProgressBarReviewAndPayments"> |
334 | 343 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.progressBarActive}}"/> |
335 | 344 | </actionGroup> |
|
345 | 354 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateProgressBarReviewAndPayments3"/> |
346 | 355 |
|
347 | 356 | <!-- Check title "Payment Method" --> |
| 357 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.titlePayment}}" stepKey="waitForTitlePayment"/> |
348 | 358 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertTitlePayment"> |
349 | 359 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.titlePayment}}"/> |
350 | 360 | </actionGroup> |
|
360 | 370 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateTitlePayment3"/> |
361 | 371 |
|
362 | 372 | <!-- Check text for checkbox "My billing and shipping address are the same" --> |
| 373 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.checkboxSameBillingAddress}}" stepKey="waitForCheckboxSameBillingAddress"/> |
363 | 374 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertCheckboxSameBillingAddress"> |
364 | 375 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.checkboxSameBillingAddress}}"/> |
365 | 376 | </actionGroup> |
|
375 | 386 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateCheckboxSameBillingAddress3"/> |
376 | 387 |
|
377 | 388 | <!-- Check button "Place Order" --> |
| 389 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.buttonPlaceOrder}}" stepKey="waitForButtonPlaceOrder"/> |
378 | 390 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertButtonPlaceOrder"> |
379 | 391 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.buttonPlaceOrder}}"/> |
380 | 392 | </actionGroup> |
|
390 | 402 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateButtonPlaceOrder3"/> |
391 | 403 |
|
392 | 404 | <!-- Check button "Apply Discount Code" --> |
| 405 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.textApplyDiscountCode}}" stepKey="waitForApplyDiscountCode"/> |
393 | 406 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertApplyDiscountCode"> |
394 | 407 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.textApplyDiscountCode}}"/> |
395 | 408 | </actionGroup> |
|
405 | 418 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateApplyDiscountCode3"/> |
406 | 419 |
|
407 | 420 | <!-- Check text on sidebar "Cart Subtotal" --> |
| 421 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.textCartSubtotal}}" stepKey="waitForCartSubtotalText"/> |
408 | 422 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertCartSubtotalText"> |
409 | 423 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.textCartSubtotal}}"/> |
410 | 424 | </actionGroup> |
|
413 | 427 | <see userInput="Cart Subtotal Translated" selector="{{InlineTranslationModeCheckoutSection.textCartSubtotal}}" stepKey="seeTranslateCartSubtotalOnCheckoutText"/> |
414 | 428 |
|
415 | 429 | <!-- Check text on sidebar text "Shipping" --> |
| 430 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.textShippingTotal}}" stepKey="waitForShippingText"/> |
416 | 431 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertShippingText"> |
417 | 432 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.textShippingTotal}}"/> |
418 | 433 | </actionGroup> |
|
428 | 443 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateShippingText3"/> |
429 | 444 |
|
430 | 445 | <!-- Check text on sidebar text "Order Total" --> |
| 446 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.textOrderTotal}}" stepKey="waitForOrderTotalText"/> |
431 | 447 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertOrderTotalText"> |
432 | 448 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.textOrderTotal}}"/> |
433 | 449 | </actionGroup> |
|
443 | 459 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateOrderTotalText3"/> |
444 | 460 |
|
445 | 461 | <!-- Check text on sidebar title "Ship To" --> |
| 462 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.titleShipTo}}" stepKey="waitForTitleShipTo"/> |
446 | 463 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertTitleShipTo"> |
447 | 464 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.titleShipTo}}"/> |
448 | 465 | </actionGroup> |
|
458 | 475 | <actionGroup ref="StorefrontSubmitInlineTranslationFormActionGroup" stepKey="translateTitleShipTo3"/> |
459 | 476 |
|
460 | 477 | <!-- Check text on sidebar title "Shipping Method:" --> |
| 478 | + <waitForElementVisible selector="{{InlineTranslationModeCheckoutSection.titleShopVia}}" stepKey="waitForTitleShipVia"/> |
461 | 479 | <actionGroup ref="AssertElementInTranslateInlineModeActionGroup" stepKey="assertTitleShipVia"> |
462 | 480 | <argument name="elementSelector" value="{{InlineTranslationModeCheckoutSection.titleShopVia}}"/> |
463 | 481 | </actionGroup> |
|
0 commit comments