|
50 | 50 |
|
51 | 51 | <!-- Go to 'print order' page by grabbed order id and assert browser does not redirect to order history page -->
|
52 | 52 | <grabFromCurrentUrl regex="~/order_id/(\d+)/~" stepKey="grabOrderIdFromURL"/>
|
53 |
| - <comment userInput="BIC workaround" stepKey="waitForPrintWindowToOpen"/> |
54 |
| - |
55 |
| - <helper class="Magento\Sales\Test\Mftf\Helper\SalesHelper" method="switchToWindowWithUrlAndClosePrintDialogIfEncountered" stepKey="switchToWindowWithUrlAndClosePrintDialogIfEncountered"> |
56 |
| - <argument name="expectedUrl">sales/order/print/order_id/{$grabOrderIdFromURL}</argument> |
57 |
| - <argument name="expectedUrlComparisonType">COMPARISON_PATH_SUBSET_MATCH</argument> |
58 |
| - </helper> |
59 |
| - |
60 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="switchToPrintPage"/> |
61 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="checkPrintPage"/> |
62 |
| - |
63 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="openNewTab"/> |
64 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="waitForNewTabToOpen" /> |
65 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="switchForward"/> |
66 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="waitForNewTab3HTML" /> |
67 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="duplicatePrintPage"/> |
68 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="waitForDuplicatePrintWindowToOpen" /> |
69 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="switchToDuplicatePrintPage"/> |
70 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="checkDuplicatePrintPage"/> |
71 |
| - |
72 |
| - <!-- Log out of customer 1's account --> |
73 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="openNewTab2"/> |
74 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="waitForNewTabToOpen1" /> |
75 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="switchForward2"/> |
76 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="waitForNewTab2HTML" /> |
77 | 53 |
|
78 | 54 | <amOnPage url="{{StorefrontCustomerSignOutPage.url}}" stepKey="signOut"/>
|
79 | 55 | <waitForLoadingMaskToDisappear stepKey="waitSignOutPage"/>
|
80 | 56 |
|
| 57 | + <openNewTab stepKey="openNewTab1"/> |
| 58 | + <waitForPageLoad stepKey="waitForNewTabToOpen1" /> |
| 59 | + <switchToNextTab stepKey="switchForward1"/> |
| 60 | + <waitForElement selector="body" stepKey="waitForNewTabHTML1"/> |
| 61 | + |
81 | 62 | <!-- Log in to Storefront as Customer 2 -->
|
82 | 63 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="signUp2">
|
83 | 64 | <argument name="Customer" value="$createCustomer2$"/>
|
|
88 | 69 | <argument name="Category" value="$createCategory$"/>
|
89 | 70 | </actionGroup>
|
90 | 71 |
|
91 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="waitForPrintWindowToOpen2" /> |
92 |
| - <helper class="Magento\Sales\Test\Mftf\Helper\SalesHelper" method="switchToWindowWithUrlAndClosePrintDialogIfEncountered" stepKey="switchToWindowWithUrlAndClosePrintDialogIfEncountered2"> |
93 |
| - <argument name="expectedUrl">sales/order/print/order_id/</argument> |
94 |
| - <argument name="expectedUrlComparisonType">COMPARISON_PATH_SUBSET_MATCH</argument> |
95 |
| - </helper> |
96 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="switchToPrintPage2"/> |
97 |
| - <comment userInput="Step key preserved for backwards compatibility" stepKey="checkPrintPage2"/> |
98 |
| - |
99 | 72 | <openNewTab stepKey="openNewTab3"/>
|
100 | 73 | <waitForPageLoad stepKey="waitForNewTabToOpen2" />
|
101 | 74 | <switchToNextTab stepKey="switchForward4"/>
|
102 |
| - <waitForElement selector="body" stepKey="waitForNewTabHTML" /> |
| 75 | + <waitForElement selector="body" stepKey="waitForNewTabHTML"/> |
103 | 76 |
|
104 | 77 | <!-- Assert trying to load 'print order' page as customer 2 with the the order id created by customer 1 will redirect to 'order history' page -->
|
105 | 78 | <amOnPage url="{{StorefrontSalesOrderPrintPage.url({$grabOrderIdFromURL})}}" stepKey="duplicatePrintPage2"/>
|
|
0 commit comments