Skip to content

Commit dd26af2

Browse files
MFTF test update.
1 parent 55f06e6 commit dd26af2

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminLoginAsCustomerLoginFromOrderPageActionGroup.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,17 @@
1616
<argument name="orderId" type="string"/>
1717
</arguments>
1818

19-
<amOnPage url="{{AdminOrderPage.url(orderId)}}" stepKey="gotoOrderPage"/>
20-
<waitForPageLoad stepKey="waitForOrderPageLoad"/>
19+
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="navigateToOrderGridPage"/>
20+
<waitForPageLoad stepKey="waitForOrdersPage"/>
21+
<conditionalClick selector="{{AdminOrdersGridSection.clearFilters}}" dependentSelector="{{AdminOrdersGridSection.clearFilters}}" visible="true" stepKey="clearExistingOrderFilters"/>
22+
<waitForPageLoad stepKey="waitForClearFilters"/>
23+
<click selector="{{AdminOrdersGridSection.filters}}" stepKey="openOrderGridFilters"/>
24+
<waitForPageLoad stepKey="waitForClickFilters"/>
25+
<fillField selector="{{AdminOrdersGridSection.idFilter}}" userInput="{{orderId}}" stepKey="fillOrderIdFilter"/>
26+
<click selector="{{AdminOrdersGridSection.applyFilters}}" stepKey="clickOrderApplyFilters"/>
27+
<waitForPageLoad stepKey="waitForApplyFilters"/>
28+
<click selector="{{AdminDataGridTableSection.firstRow}}" stepKey="clickOrderRow"/>
29+
<waitForPageLoad stepKey="waitForOrderPageOpened"/>
2130
<click selector="{{AdminOrderDetailsMainActionsSection.loginAsCustomer}}" stepKey="clickLoginAsCustomerLink"/>
2231
<see selector="{{AdminConfirmationModalSection.title}}" userInput="You are about to Login as Customer"
2332
stepKey="seeModal"/>

app/code/Magento/LoginAsCustomer/Test/Mftf/ActionGroup/AdminLoginAsCustomerLoginFromOrderPageManualChooseActionGroup.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@
1717
<argument name="storeName" type="string" defaultValue="default"/>
1818
</arguments>
1919

20-
<amOnPage url="{{AdminOrderPage.url(orderId)}}" stepKey="gotoOrderPage"/>
21-
<waitForPageLoad stepKey="waitForCustomerPageLoad"/>
20+
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="navigateToOrderGridPage"/>
21+
<waitForPageLoad stepKey="waitForOrdersPage"/>
22+
<conditionalClick selector="{{AdminOrdersGridSection.clearFilters}}" dependentSelector="{{AdminOrdersGridSection.clearFilters}}" visible="true" stepKey="clearExistingOrderFilters"/>
23+
<waitForPageLoad stepKey="waitForClearFilters"/>
24+
<click selector="{{AdminOrdersGridSection.filters}}" stepKey="openOrderGridFilters"/>
25+
<waitForPageLoad stepKey="waitForClickFilters"/>
26+
<fillField selector="{{AdminOrdersGridSection.idFilter}}" userInput="{{orderId}}" stepKey="fillOrderIdFilter"/>
27+
<click selector="{{AdminOrdersGridSection.applyFilters}}" stepKey="clickOrderApplyFilters"/>
28+
<waitForPageLoad stepKey="waitForApplyFilters"/>
29+
<click selector="{{AdminDataGridTableSection.firstRow}}" stepKey="clickOrderRow"/>
30+
<waitForPageLoad stepKey="waitForOrderPageOpened"/>
2231
<click selector="{{AdminOrderDetailsMainActionsSection.loginAsCustomer}}" stepKey="clickLoginAsCustomerLink"/>
2332
<see selector="{{AdminConfirmationModalSection.title}}" userInput="Login as Customer: Select Store" stepKey="seeModal"/>
2433
<see selector="{{AdminConfirmationModalSection.message}}" userInput="Actions taken while in &quot;Login as Customer&quot; will affect actual customer data." stepKey="seeModalMessage"/>

0 commit comments

Comments
 (0)