File tree Expand file tree Collapse file tree 5 files changed +75
-1
lines changed
app/code/Magento/Reports/Test/Mftf Expand file tree Collapse file tree 5 files changed +75
-1
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!--
3+ /**
4+ * Copyright © Magento, Inc. All rights reserved.
5+ * See COPYING.txt for license details.
6+ */
7+ -->
8+
9+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10+ <actionGroup name =" AdminAbandonedCartsReportFilterEmailActionGroup" >
11+ <annotations >
12+ <description >Filter in "Abandoned Carts" report by email.</description >
13+ </annotations >
14+ <arguments >
15+ <argument name =" email" type =" string" defaultValue =" {{Simple_US_Customer.email}}" />
16+ </arguments >
17+
18+ <fillField selector =" {{AbandonedCartsReportMainSection.email}}" userInput =" {{email}}" stepKey =" fillEmailFilterField" />
19+ <click selector =" {{AbandonedCartsReportMainSection.searchButton}}" stepKey =" clickSearch" />
20+ </actionGroup >
21+ </actionGroups >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <!--
3+ /**
4+ * Copyright © Magento, Inc. All rights reserved.
5+ * See COPYING.txt for license details.
6+ */
7+ -->
8+ <pages xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/PageObject.xsd" >
9+ <page name =" AbandonedCartsPage" url =" reports/report_product/sold/" area =" admin" module =" Reports" >
10+ <section name =" AbandonedCartsReportMainSection" />
11+ <section name =" AbandonedCartsGridSection" />
12+ </page >
13+ </pages >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!--
3+ /**
4+ * Copyright © Magento, Inc. All rights reserved.
5+ * See COPYING.txt for license details.
6+ */
7+ -->
8+
9+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11+ <section name =" AbandonedCartsGridSection" >
12+ <element name =" email" type =" input" selector =" //tr[@class='data-grid-filters']/td[@data-column='email']" />
13+ </section >
14+ </sections >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <!--
3+ /**
4+ * Copyright © Magento, Inc. All rights reserved.
5+ * See COPYING.txt for license details.
6+ */
7+ -->
8+
9+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
11+ <section name =" AbandonedCartsReportMainSection" >
12+ <element name =" customer" type =" input" selector =" #gridAbandoned_filter_customer_name" />
13+ <element name =" email" type =" input" selector =" #gridAbandoned_filter_email" />
14+ <element name =" searchButton" type =" button" selector =" //button/span[text()='Search']" />
15+ <element name =" resetButton" type =" button" selector =" //button/span[text()='Reset Filter']" />
16+ </section >
17+ </sections >
Original file line number Diff line number Diff line change 2525
2626 <!-- Create Customer -->
2727 <createData entity =" Simple_US_Customer" stepKey =" createCustomer" >
28- <field key =" email" >John+Doe @example.com</field >
28+ <field key =" email" >John+@example.com</field >
2929 </createData >
3030
3131 <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
6161 <actionGroup ref =" AdminAssertPageTitleActionGroup" stepKey =" seePageTitle" >
6262 <argument name =" title" value =" {{AdminMenuReportsMarketingAbandonedCarts.pageTitle}}" />
6363 </actionGroup >
64+
65+ <!-- Search for email containing '+' sign -->
66+ <actionGroup ref =" AdminAbandonedCartsReportFilterEmailActionGroup" stepKey =" searchForEmailWithPlus" >
67+ <argument name =" email" value =" John+" />
68+ </actionGroup >
69+
70+ <!-- Check record is present -->
71+
72+
6473 </test >
6574</tests >
You can’t perform that action at this time.
0 commit comments