|
| 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 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="StoreFrontWidgetTitleWithReservedCharsTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Cms"/> |
| 13 | + <stories value="Create a CMS Page via the Admin when widget title contains reserved chairs"/> |
| 14 | + <title value="Create CMS Page via the Admin when widget title contains reserved chairs"/> |
| 15 | + <description value="See CMS Page title on store front page if titled widget with reserved chairs added"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <group value="Cms"/> |
| 18 | + <group value="WYSIWYGDisabled"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 22 | + <createData entity="simpleProductWithoutCategory" stepKey="createSimpleProductWithoutCategory"/> |
| 23 | + <createData entity="_defaultCmsPage" stepKey="createCmsPage"/> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <deleteData createDataKey="createSimpleProductWithoutCategory" stepKey="deleteProduct"/> |
| 27 | + <deleteData createDataKey="createCmsPage" stepKey="deleteCmsPage" /> |
| 28 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 29 | + </after> |
| 30 | + <!--Navigate to Page in Admin--> |
| 31 | + <actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage"> |
| 32 | + <argument name="CMSPage" value="$createCmsPage$"/> |
| 33 | + </actionGroup> |
| 34 | + <!--Insert widget--> |
| 35 | + <actionGroup ref="AdminInsertWidgetToCmsPageContentActionGroup" stepKey="insertWidgetToCmsPageContent"> |
| 36 | + <argument name="widgetType" value="Catalog Products List"/> |
| 37 | + </actionGroup> |
| 38 | + <!--Fill widget title and save--> |
| 39 | + <actionGroup ref="AdminFillCatalogProductsListWidgetTitleActionGroup" stepKey="fillWidgetTitle"> |
| 40 | + <argument name="title" value="Tittle }}"/> |
| 41 | + </actionGroup> |
| 42 | + <actionGroup ref="AdminClickInsertWidgetActionGroup" stepKey="clickInsertWidgetButton"/> |
| 43 | + <actionGroup ref="SaveCmsPageActionGroup" stepKey="saveOpenedPage"/> |
| 44 | + <!--Verify data on frontend--> |
| 45 | + <actionGroup ref="StorefrontGoToCMSPageActionGroup" stepKey="navigateToPageOnStorefront"> |
| 46 | + <argument name="identifier" value="$createCmsPage.identifier$"/> |
| 47 | + </actionGroup> |
| 48 | + <actionGroup ref="StorefrontAssertWidgetTitleActionGroup" stepKey="verifyPageDataOnFrontend"> |
| 49 | + <argument name="title" value="Tittle }}"/> |
| 50 | + </actionGroup> |
| 51 | + </test> |
| 52 | +</tests> |
0 commit comments