|
| 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="AdminMenuNavigationWithSecretKeysTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Backend"/> |
| 14 | + <stories value="Menu Navigation"/> |
| 15 | + <title value="Admin should be able to navigate between menu options with secret url keys enabled"/> |
| 16 | + <description value="Admin should be able to navigate between menu options with secret url keys enabled"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="MAGETWO-95349"/> |
| 19 | + <group value="menu"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <magentoCLI command="config:set admin/security/use_form_key 1" stepKey="enableUrlSecretKeys"/> |
| 23 | + <magentoCLI command="cache:clean config full_page" stepKey="cleanInvalidatedCaches1"/> |
| 24 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 25 | + </before> |
| 26 | + <after> |
| 27 | + <magentoCLI command="config:set admin/security/use_form_key 0" stepKey="disableUrlSecretKeys"/> |
| 28 | + <magentoCLI command="cache:clean config full_page" stepKey="cleanInvalidatedCaches2"/> |
| 29 | + <actionGroup ref="logout" stepKey="logout"/> |
| 30 | + </after> |
| 31 | + |
| 32 | + <click selector="{{AdminMenuSection.stores}}" stepKey="clickStoresMenuOption1"/> |
| 33 | + <waitForLoadingMaskToDisappear stepKey="waitForStoresMenu1" /> |
| 34 | + <click selector="{{AdminMenuSection.configuration}}" stepKey="clickStoresConfigurationMenuOption1"/> |
| 35 | + <waitForPageLoad stepKey="waitForConfigurationPageLoad1"/> |
| 36 | + <seeCurrentUrlMatches regex="~\/admin\/system_config\/~" stepKey="seeCurrentUrlMatchesConfigPath1"/> |
| 37 | + |
| 38 | + <click selector="{{AdminMenuSection.catalog}}" stepKey="clickCatalogMenuOption"/> |
| 39 | + <waitForLoadingMaskToDisappear stepKey="waitForCatalogMenu1" /> |
| 40 | + <click selector="{{AdminMenuSection.catalogProducts}}" stepKey="clickCatalogProductsMenuOption"/> |
| 41 | + <waitForPageLoad stepKey="waitForProductsPageLoad"/> |
| 42 | + <seeCurrentUrlMatches regex="~\/catalog\/product\/~" stepKey="seeCurrentUrlMatchesProductsPath"/> |
| 43 | + |
| 44 | + <click selector="{{AdminMenuSection.stores}}" stepKey="clickStoresMenuOption2"/> |
| 45 | + <waitForLoadingMaskToDisappear stepKey="waitForStoresMenu2" /> |
| 46 | + <click selector="{{AdminMenuSection.configuration}}" stepKey="clickStoresConfigurationMenuOption2"/> |
| 47 | + <waitForPageLoad stepKey="waitForConfigurationPageLoad2"/> |
| 48 | + <seeCurrentUrlMatches regex="~\/admin\/system_config\/~" stepKey="seeCurrentUrlMatchesConfigPath2"/> |
| 49 | + </test> |
| 50 | +</tests> |
0 commit comments