File tree Expand file tree Collapse file tree 4 files changed +33
-33
lines changed
app/code/Magento/Customer/Test/Mftf Expand file tree Collapse file tree 4 files changed +33
-33
lines changed Load Diff This file was deleted.
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+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10+ <actionGroup name =" AdminCreateInviteActionGroup" >
11+ <annotations >
12+ <description >Adds the invitation.</description >
13+ </annotations >
14+ <arguments >
15+ <argument name =" email" type =" string" defaultValue =" {{AdminMarketingInviteData.email}}" />
16+ <argument name =" message" type =" string" defaultValue =" {{AdminMarketingInviteData.message}}" />
17+ <argument name =" store" type =" string" defaultValue =" {{AdminMarketingInviteData.store_id}}" />
18+ <argument name =" group" type =" string" defaultValue =" {{AdminMarketingInviteData.group_id}}" />
19+ </arguments >
20+
21+ <click selector =" {{AdminMarketingInviteSection.addInvitation}}" stepKey =" clickAddInvitationButton" />
22+ <waitForPageLoad stepKey =" waitForPageLoad" />
23+ <fillField selector =" {{AdminMarketingInviteSection.email}}" userInput =" {{email}}" stepKey =" fillInEmailField" />
24+ <fillField selector =" {{AdminMarketingInviteSection.message}}" userInput =" {{message}}" stepKey =" fillInMessageFields" />
25+ <selectOption selector =" {{AdminMarketingInviteSection.sendFrom}}" userInput =" {{store}}" stepKey =" selectInvitationSendFrom" />
26+ <selectOption selector =" {{AdminMarketingInviteSection.inviteeGroup}}" userInput =" {{group}}" stepKey =" selectInviteeGroup" />
27+ <click selector =" {{AdminMarketingInviteSection.saveInvitation}}" stepKey =" clickSaveInvitationButton" />
28+ <waitForText selector =" {{AdminMarketingInviteSection.successMessage}}" userInput =" We sent 1 invitation(s)." stepKey =" seeSuccessMessage" />
29+ </actionGroup >
30+ </actionGroups >
Original file line number Diff line number Diff line change 88
99<entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1010 xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11- <entity name =" InvitationsData " type =" data" >
11+ <entity name =" AdminMarketingInviteData " type =" data" >
1212 <data key =" email" unique =" prefix" >John.Doe@example.com</data >
13- <data key =" message" >Invitation Message </data >
13+ <data key =" message" >Sample Message </data >
1414 <data key =" store_id" >Default Store View</data >
1515 <data key =" group_id" >General</data >
1616 </entity >
Original file line number Diff line number Diff line change 77-->
88<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
99 xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
10- <section name =" AdminInvitationsSection " >
10+ <section name =" AdminMarketingInviteSection " >
1111 <element name =" addInvitation" type =" button" selector =" .page-actions-buttons #add" />
1212 <element name =" email" type =" textarea" selector =" //div[@class='admin__field-control']//textarea[@name='email']" />
1313 <element name =" message" type =" textarea" selector =" //div[@class='admin__field-control']//textarea[@name='message']" />
You can’t perform that action at this time.
0 commit comments