|
| 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="DisplayRefreshCacheAfterChangingCategoryPageLayoutTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Catalog"/> |
| 14 | + <title value="'Refresh cache' admin notification is displayed when changing category page layout"/> |
| 15 | + <description value="'Refresh cache' message is not displayed when changing category page layout"/> |
| 16 | + <severity value="MAJOR"/> |
| 17 | + <testCaseId value="MC-17031"/> |
| 18 | + <useCaseId value="MAGETWO-45666"/> |
| 19 | + <group value="catalog"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!-- Create category, flush cache and log in --> |
| 23 | + <comment userInput="Create category, flush cache and log in" stepKey="createCategoryAndLogIn"/> |
| 24 | + <createData entity="SimpleSubCategory" stepKey="simpleCategory"/> |
| 25 | + <actionGroup ref="LoginAsAdmin" stepKey="logInAsAdmin"/> |
| 26 | + <magentoCLI command="cache:flush" stepKey="flushCache"/> |
| 27 | + </before> |
| 28 | + <after> |
| 29 | + <!-- Delete category and log out --> |
| 30 | + <comment userInput="Delete category and log out" stepKey="deleteCategoryAndLogOut"/> |
| 31 | + <deleteData createDataKey="simpleCategory" stepKey="deleteCategory"/> |
| 32 | + <actionGroup ref="logout" stepKey="logOutFromAdmin"/> |
| 33 | + <magentoCLI command="cache:flush" stepKey="flushCache"/> |
| 34 | + </after> |
| 35 | + <!-- Navigate to category details page --> |
| 36 | + <comment userInput="Navigate to category details page" stepKey="navigateToAdminCategoryPage"/> |
| 37 | + <actionGroup ref="goToAdminCategoryPageById" stepKey="goToAdminCategoryPage"> |
| 38 | + <argument name="id" value="$$simpleCategory.id$$"/> |
| 39 | + </actionGroup> |
| 40 | + <!-- Open design tab and set layout --> |
| 41 | + <comment userInput="Open design tab and set layout" stepKey="setLayoutAndSave"/> |
| 42 | + <click selector="{{CategoryDesignSection.DesignTab}}" stepKey="clickOnDesignTab"/> |
| 43 | + <waitForElementVisible selector="{{CategoryDesignSection.LayoutDropdown}}" stepKey="waitForLayoutDropDown" /> |
| 44 | + <selectOption selector="{{CategoryDesignSection.LayoutDropdown}}" userInput="2 columns with right bar" stepKey="selectAnOption" /> |
| 45 | + <click selector="{{ContentManagementSection.Save}}" stepKey="clickSaveConfig" /> |
| 46 | + <waitForPageLoad stepKey="waitSaveToApply"/> |
| 47 | + <!-- See if warning message displays --> |
| 48 | + <comment userInput="See if warning message displays" stepKey="checkWarningMessagePresence"/> |
| 49 | + <see selector="{{AdminMessagesSection.warningMessage}}" userInput="Please go to Cache Management and refresh cache types" stepKey="seeWarningMessage"/> |
| 50 | + </test> |
| 51 | +</tests> |
0 commit comments