Skip to content

Commit 3dfa22b

Browse files
committed
ACQE-8746: [MFTF TESTS] StorefrontRedirectToOrderHistoryTest
- Validate print screen URL instead of interacting with Chrome print dialog.
1 parent 620b078 commit 3dfa22b

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/CreateOrderToPrintPageWithSelectedPaymentMethodActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515

1616
<waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" after="clickNext" stepKey="waitForPaymentSectionLoaded"/>
1717
<conditionalClick selector="{{CheckoutPaymentSection.checkMoneyOrderPayment}}" dependentSelector="{{CheckoutPaymentSection.billingAddress}}" visible="false" before="waitForPlaceOrderButton" stepKey="clickCheckMoneyOrderPayment"/>
18+
<remove keyForRemoval="clickPrintOrderLink"/>
1819
</actionGroup>
1920
</actionGroups>

app/code/Magento/Sales/Test/Mftf/Test/StorefrontRedirectToOrderHistoryTest.xml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@
5454
<amOnPage url="{{StorefrontCustomerSignOutPage.url}}" stepKey="signOut"/>
5555
<waitForLoadingMaskToDisappear stepKey="waitSignOutPage"/>
5656

57-
<openNewTab stepKey="openNewTab1"/>
58-
<waitForPageLoad stepKey="waitForNewTabToOpen1" />
59-
<switchToNextTab stepKey="switchForward1"/>
60-
<waitForElement selector="body" stepKey="waitForNewTabHTML1"/>
61-
6257
<!-- Log in to Storefront as Customer 2 -->
6358
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="signUp2">
6459
<argument name="Customer" value="$createCustomer2$"/>
@@ -69,10 +64,6 @@
6964
<argument name="Category" value="$createCategory$"/>
7065
</actionGroup>
7166

72-
<openNewTab stepKey="openNewTab3"/>
73-
<waitForPageLoad stepKey="waitForNewTabToOpen2" />
74-
<switchToNextTab stepKey="switchForward4"/>
75-
<waitForElement selector="body" stepKey="waitForNewTabHTML"/>
7667

7768
<!-- 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 -->
7869
<amOnPage url="{{StorefrontSalesOrderPrintPage.url({$grabOrderIdFromURL})}}" stepKey="duplicatePrintPage2"/>

0 commit comments

Comments
 (0)