File tree 5 files changed +101
-0
lines changed
5 files changed +101
-0
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"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AdminNavigateToEmailToFriendSettingsActionGroup" >
12
+ <amOnPage url =" {{AdminConfigurationEmailToFriendPage.url}}" stepKey =" navigateToPersistencePage" />
13
+ <conditionalClick selector =" {{AdminEmailToFriendSection.DefaultLayoutsTab}}" dependentSelector =" {{AdminEmailToFriendSection.CheckIfTabExpand}}" visible =" true" stepKey =" clickTab" />
14
+ </actionGroup >
15
+ </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
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AssertAdminEmailToFriendOptionsAvailableActionGroup" >
12
+ <seeElement stepKey =" seeEmailTemplateInput" selector =" {{AdminEmailToFriendSection.emailTemplate}}" />
13
+ <seeElement stepKey =" seeAllowForGuestsInput" selector =" {{AdminEmailToFriendSection.allowForGuests}}" />
14
+ <seeElement stepKey =" seeMaxRecipientsInput" selector =" {{AdminEmailToFriendSection.maxRecipients}}" />
15
+ <seeElement stepKey =" seeMaxPerHourInput" selector =" {{AdminEmailToFriendSection.maxPerHour}}" />
16
+ <seeElement stepKey =" seeLimitSendingBy" selector =" {{AdminEmailToFriendSection.limitSendingBy}}" />
17
+ </actionGroup >
18
+ </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
+
9
+ <pages xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Page/etc/PageObject.xsd" >
11
+ <page name =" AdminConfigurationEmailToFriendPage" url =" admin/system_config/edit/section/sendfriend/" module =" Catalog" area =" admin" >
12
+ <section name =" AdminEmailToFriendSection" />
13
+ </page >
14
+ </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
+ <tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
11
+ <test name =" AdminCatalogEmailToFriendSettingsTest" >
12
+ <annotations >
13
+ <features value =" Backend" />
14
+ <stories value =" Enable Email To A Friend Functionality" />
15
+ <title value =" Admin should be able to manage settings of Email To A Friend Functionality" />
16
+ <description value =" Admin should be able to enable Email To A Friend functionality in Magento Admin backend and see additional options" />
17
+ <group value =" backend" />
18
+ </annotations >
19
+
20
+ <before >
21
+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
22
+ <magentoCLI stepKey =" enableSendFriend" command =" config:set sendfriend/email/enabled 1" />
23
+ <magentoCLI stepKey =" cacheClean" command =" cache:clean config" />
24
+ </before >
25
+ <after >
26
+ <magentoCLI stepKey =" disableSendFriend" command =" config:set sendfriend/email/enabled 0" />
27
+ <magentoCLI stepKey =" cacheClean" command =" cache:clean config" />
28
+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logout" />
29
+ </after >
30
+
31
+ <actionGroup ref =" AdminNavigateToEmailToFriendSettingsActionGroup" stepKey =" navigateToSendFriendSettings" />
32
+ <actionGroup ref =" AssertAdminEmailToFriendOptionsAvailableActionGroup" stepKey =" assertOptions" />
33
+ </test >
34
+ </tests >
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 =" AdminEmailToFriendSection" >
12
+ <element name =" DefaultLayoutsTab" type =" button" selector =" .entry-edit-head-link" />
13
+ <element name =" CheckIfTabExpand" type =" button" selector =" .entry-edit-head-link:not(.open)" />
14
+ <element name =" emailTemplate" type =" input" selector =" #sendfriend_email_template" />
15
+ <element name =" allowForGuests" type =" input" selector =" #sendfriend_email_allow_guest" />
16
+ <element name =" maxRecipients" type =" input" selector =" #sendfriend_email_max_recipients" />
17
+ <element name =" maxPerHour" type =" input" selector =" #sendfriend_email_max_per_hour" />
18
+ <element name =" limitSendingBy" type =" input" selector =" #sendfriend_email_check_by" />
19
+ </section >
20
+ </sections >
You can’t perform that action at this time.
0 commit comments