Skip to content

Commit 5a6a735

Browse files
committed
ACQE-8280: Pager is present on View Order page for Guest using Orders and Returns functionality if qty of ordered products exceeds display limit
- Removed the entity from the data file and updated the test file accordingly.
1 parent 477640c commit 5a6a735

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

app/code/Magento/Sales/Test/Mftf/Data/OrderData.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright 2017 Adobe
5-
* All Rights Reserved.
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
66
*/
77
-->
88

@@ -45,7 +45,4 @@
4545
<data key="processing">Processing</data>
4646
<data key="ordered">Ordered</data>
4747
</entity>
48-
<entity name="OrdersPaginationData">
49-
<data key="pager">Items 1 to 20 of 21 total</data>
50-
</entity>
5148
</entities>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="StorefrontVerifyPagerIsPresentOnViewOrderPageForGuestUsingOrdersAndReturnsTest">
1212
<annotations>
13-
<features value="Order"/>
13+
<features value="Sales"/>
1414
<stories value="Pager should be present on view order page if quantity of ordered products exceeds limit"/>
1515
<title value="Pager should be present on view order page"/>
1616
<description value="Verify Pager is present on View Order page for Guest using Orders and Returns functionality if qty of ordered products exceeds display limit"/>
1717
<severity value="MAJOR"/>
1818
<testCaseId value="AC-4415"/>
19-
<group value="Order"/>
19+
<group value="Sales"/>
2020
</annotations>
2121
<before>
2222
<!-- Create simple products -->
@@ -182,7 +182,7 @@
182182
<waitForPageLoad stepKey="waitForPageLoad1"/>
183183
<!-- Step 4 Assertion: Verify order page is opened, only 20 items present on the first page and pagers (Top and Bottom) and text "Items 1-20 of 21 total" are present -->
184184
<waitForElementVisible selector="{{StorefrontOrderAndReturnInformationSection.orderPage({$grabOrderNumber})}}" stepKey="verifyOrderPage" />
185-
<waitForText userInput="{{OrdersPaginationData.pager}}" selector="{{StorefrontOrderAndReturnInformationSection.pagerAtTop}}" stepKey="seeTotalProductsAndNumberOfProductsPerPageAtTop"/>
186-
<waitForText userInput="{{OrdersPaginationData.pager}}" selector="{{StorefrontOrderAndReturnInformationSection.pagerAtBottom}}" stepKey="seePagerAtBottom"/>
185+
<waitForText userInput="Items 1 to 20 of 21 total" selector="{{StorefrontOrderAndReturnInformationSection.pagerAtTop}}" stepKey="seeTotalProductsAndNumberOfProductsPerPageAtTop"/>
186+
<waitForText userInput="Items 1 to 20 of 21 total" selector="{{StorefrontOrderAndReturnInformationSection.pagerAtBottom}}" stepKey="seePagerAtBottom"/>
187187
</test>
188188
</tests>

0 commit comments

Comments
 (0)