123456789101112131415161718192021222324252627282930313233343536373839 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- -->
- <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
- <!--Create New Template -->
- <actionGroup name="CreateNewTemplate">
- <!--Click "Add New Template" button-->
- <click stepKey="clickAddNewTemplateButton" selector="{{EmailTemplatesSection.addNewTemplateButton}}"/>
- <waitForPageLoad stepKey="waitForNewEmailTemplatesPageLoaded"/>
- <!--Select value for "Template" drop-down menu in "Load default template" tab-->
- <selectOption selector="{{EmailTemplatesSection.templateDropDown}}" stepKey="selectValueFromTemplateDropDown" userInput="Registry Update"/>
- <!--Fill in required fields in "Template Information" tab and click "Save Template" button-->
- <click stepKey="clickLoadTemplateButton" selector="{{EmailTemplatesSection.loadTemplateButton}}" after="selectValueFromTemplateDropDown"/>
- <fillField stepKey="fillTemplateNameField" selector="{{EmailTemplatesSection.templateNameField}}" userInput="{{EmailTemplate.templateName}}" after="clickLoadTemplateButton"/>
- <waitForLoadingMaskToDisappear stepKey="wait1"/>
- <click stepKey="clickSaveTemplateButton" selector="{{EmailTemplatesSection.saveTemplateButton}}"/>
- <waitForPageLoad stepKey="waitForNewTemplateCreated"/>
- </actionGroup>
- <!--Delete created Template-->
- <actionGroup name="DeleteCreatedTemplate">
- <switchToPreviousTab stepKey="switchToPreviousTab"/>
- <seeInCurrentUrl stepKey="seeCreatedTemplateUrl" url="email_template/edit/id"/>
- <click stepKey="clickDeleteTemplateButton" selector="{{EmailTemplatesSection.deleteTemplateButton}}"/>
- <acceptPopup stepKey="acceptDeletingTemplatePopUp"/>
- <see stepKey="SeeSuccessfulMessage" userInput="You deleted the email template."/>
- <click stepKey="clickResetFilterButton" selector="{{EmailTemplatesSection.resetFilterButton}}"/>
- <waitForElementNotVisible selector="{{MarketingEmailTemplateSection.clearSearchTemplate(EmailTemplate.templateName)}}" stepKey="waitForSearchFieldCleared"/>
- </actionGroup>
- </actionGroups>
|