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 8
8
9
9
<entities xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
10
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd" >
11
- <entity name =" InvitationsData " type =" data" >
11
+ <entity name =" AdminMarketingInviteData " type =" data" >
12
12
<data key =" email" unique =" prefix" >John.Doe@example.com</data >
13
- <data key =" message" >Invitation Message </data >
13
+ <data key =" message" >Sample Message </data >
14
14
<data key =" store_id" >Default Store View</data >
15
15
<data key =" group_id" >General</data >
16
16
</entity >
Original file line number Diff line number Diff line change 7
7
-->
8
8
<sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/SectionObject.xsd" >
10
- <section name =" AdminInvitationsSection " >
10
+ <section name =" AdminMarketingInviteSection " >
11
11
<element name =" addInvitation" type =" button" selector =" .page-actions-buttons #add" />
12
12
<element name =" email" type =" textarea" selector =" //div[@class='admin__field-control']//textarea[@name='email']" />
13
13
<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