|
| 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="TransactionalEmailsLogoUploadTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Email"/> |
| 14 | + <stories value="Email"/> |
| 15 | + <title value="MC-13908: Uploading a Transactional Emails logo"/> |
| 16 | + <description value="Transactional Emails Logo should be able to be uploaded in the admin and previewed"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="MC-13908"/> |
| 19 | + <group value="LogoUpload"/> |
| 20 | + </annotations> |
| 21 | + <!--Login to Admin Area--> |
| 22 | + <before> |
| 23 | + <actionGroup ref="LoginAsAdmin" stepKey="loginToAdminArea"/> |
| 24 | + </before> |
| 25 | + <!--Logout from Admin Area--> |
| 26 | + <after> |
| 27 | + <actionGroup ref="logout" stepKey="logoutOfAdmin"/> |
| 28 | + </after> |
| 29 | + <!--Navigate to content->Design->Config page--> |
| 30 | + <amOnPage url="{{DesignConfigPage.url}}" stepKey="navigateToDesignConfigPage" /> |
| 31 | + <waitForPageLoad stepKey="waitForPageloadToViewDesignConfigPage"/> |
| 32 | + <click selector="{{AdminDesignConfigSection.scopeRow('3')}}" stepKey="editStoreView"/> |
| 33 | + <waitForPageLoad stepKey="waitForPageLoadToOpenStoreViewEditPage"/> |
| 34 | + <!--Click Upload logo in Transactional Emails and upload the image and preview it--> |
| 35 | + <click selector="{{AdminDesignConfigSection.logoWrapperOpen}}" stepKey="openTab" /> |
| 36 | + <attachFile selector="{{AdminDesignConfigSection.logoUpload}}" userInput="{{MagentoLogo.file}}" stepKey="attachLogo"/> |
| 37 | + <wait time="5" stepKey="waitingForLogoToUpload" /> |
| 38 | + <seeElement selector="{{AdminDesignConfigSection.logoPreview}}" stepKey="LogoPreviewIsVisible"/> |
| 39 | + </test> |
| 40 | +</tests> |
0 commit comments