|
| 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="AdminEditMediaGalleryProductAttributeScopeTest"> |
| 11 | + <annotations> |
| 12 | + <features value="Catalog"/> |
| 13 | + <stories value="MC-38156-Error on changing Media gallery attribute scope back to Global"/> |
| 14 | + <group value="Catalog"/> |
| 15 | + <title value="Admin are not able to change Scope of Media Gallery product attribute"/> |
| 16 | + <description value="Admin are not able to change Scope of Media Gallery product attribute"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="MC-40774"/> |
| 19 | + </annotations> |
| 20 | + <before> |
| 21 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginGetFromGeneralFile"/> |
| 22 | + </before> |
| 23 | + |
| 24 | + <actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="navigateToProductAttribute"/> |
| 25 | + <click selector="{{AdminProductAttributeGridSection.ResetFilter}}" stepKey="resetFiltersOnGrid1"/> |
| 26 | + <fillField selector="{{AdminProductAttributeGridSection.GridFilterFrontEndLabel}}" userInput="Media Gallery" stepKey="setAttributeLabel1"/> |
| 27 | + <click selector="{{AdminProductAttributeGridSection.Search}}" stepKey="searchForAttributeFromTheGrid1"/> |
| 28 | + <click selector="{{AdminProductAttributeGridSection.FirstRow}}" stepKey="clickOnAttributeRow1"/> |
| 29 | + <waitForPageLoad stepKey="wait2"/> |
| 30 | + |
| 31 | + <seeOptionIsSelected selector="{{AttributePropertiesSection.InputType}}" userInput="Gallery" stepKey="seeGallerySelected" /> |
| 32 | + <see selector="{{AttributePropertiesSection.InputType}}" userInput="Gallery" stepKey="seeGallerySelected1" /> |
| 33 | + <click selector="{{AdvancedAttributePropertiesSection.AdvancedAttributePropertiesSectionToggle}}" stepKey="clickAdvancedAttributePropertiesSectionToggle"/> |
| 34 | + |
| 35 | + <seeElement selector="{{AdvancedAttributePropertiesSection.Scope}}" stepKey="seeScope" /> |
| 36 | + <seeOptionIsSelected selector="{{AdvancedAttributePropertiesSection.Scope}}" userInput="Global" stepKey="seeGlobalScopeSelected" /> |
| 37 | + <see selector="{{AdvancedAttributePropertiesSection.Scope}}" userInput="Global" stepKey="seeGlobalScopeSelected1" /> |
| 38 | + |
| 39 | + <seeElement selector="{{AdvancedAttributePropertiesSectionToggle.ScopeDisabled}}" stepKey="seeScopeDisabled" /> |
| 40 | + <seeOptionIsSelected selector="{{AdvancedAttributePropertiesSection.ScopeDisabled}}" userInput="Global" stepKey="seeGlobalScopeSelectedDisabled" /> |
| 41 | + <see selector="{{AdvancedAttributePropertiesSection.ScopeDisabled}}" userInput="Global" stepKey="seeGlobalScopeSelectedDisabled1" /> |
| 42 | + </test> |
| 43 | +</tests> |
| 44 | + |
0 commit comments