|
| 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="../../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd"> |
| 11 | + |
| 12 | + <!--Create New Template --> |
| 13 | + <actionGroup name="CreateNewTemplate"> |
| 14 | + <!--Click "Add New Template" button--> |
| 15 | + <click stepKey="clickAddNewTemplateButton" selector="{{EmailTemplatesSection.addNewTemplateButton}}"/> |
| 16 | + <waitForPageLoad stepKey="waitForNewEmailTemplatesPageLoaded"/> |
| 17 | + <!--Select value for "Template" drop-down menu in "Load default template" tab--> |
| 18 | + <selectOption selector="{{EmailTemplatesSection.templateDropDown}}" stepKey="selectValueFromTemplateDropDown" userInput="Registry Update"/> |
| 19 | + |
| 20 | + <!--Fill in required fields in "Template Information" tab and click "Save Template" button--> |
| 21 | + <click stepKey="clickLoadTemplateButton" selector="{{EmailTemplatesSection.loadTemplateButton}}" after="selectValueFromTemplateDropDown"/> |
| 22 | + <fillField stepKey="fillTemplateNameField" selector="{{EmailTemplatesSection.templateNameField}}" userInput="{{EmailTemplate.templateName}}" after="clickLoadTemplateButton"/> |
| 23 | + <click stepKey="clickSaveTemplateButton" selector="{{EmailTemplatesSection.saveTemplateButton}}"/> |
| 24 | + <waitForPageLoad stepKey="waitForNewTemplateCreated"/> |
| 25 | + </actionGroup> |
| 26 | + |
| 27 | + <!--Delete created Template--> |
| 28 | + <actionGroup name="DeleteCreatedTemplate"> |
| 29 | + <switchToPreviousTab stepKey="switchToPreviousTab"/> |
| 30 | + <seeInCurrentUrl stepKey="seeCreatedTemplateUrl" url="email_template/edit/id"/> |
| 31 | + <click stepKey="clickDeleteTemplateButton" selector="{{EmailTemplatesSection.deleteTemplateButton}}"/> |
| 32 | + <acceptPopup stepKey="acceptDeletingTemplatePopUp"/> |
| 33 | + <see stepKey="SeeSuccessfulMessage" userInput="You deleted the email template."/> |
| 34 | + <click stepKey="clickResetFilterButton" selector="{{EmailTemplatesSection.resetFilterButton}}"/> |
| 35 | + <waitForElementNotVisible selector="{{MarketingEmailTemplateSection.clearSearchTemplate(EmailTemplate.templateName)}}" stepKey="waitForSearchFieldCleared"/> |
| 36 | + </actionGroup> |
| 37 | + |
| 38 | +</actionGroups> |
0 commit comments