File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed
app/code/Magento/Catalog/Test/Mftf Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 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+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11+ <actionGroup name =" AdminNavigateToProductAttributeEditPageActionGroup" >
12+ <annotations >
13+ <description >Navigate to the given product attribute edit page by attribute label</description >
14+ </annotations >
15+ <arguments >
16+ <argument name =" ProductAttributeLabel" type =" string" />
17+ </arguments >
18+
19+ <amOnPage url =" {{AdminProductAttributeGridPage.url}}" stepKey =" navigateToProductAttributeGrid" />
20+ <fillField selector =" {{AdminProductAttributeGridSection.GridFilterFrontEndLabel}}" userInput =" {{ProductAttributeLabel}}" stepKey =" fillTheAttributesFilterByLabel" />
21+ <click selector =" {{AdminProductAttributeGridSection.Search}}" stepKey =" clickTheSearchButton" />
22+ <waitForPageLoad stepKey =" waitForSearchToComplete" />
23+ <click selector =" {{AdminProductAttributeGridSection.FirstRow}}" stepKey =" clickOnTheFirstSearchResultRow" />
24+ <waitForPageLoad stepKey =" waitForAttribiteEditPageToLoad" />
25+ </actionGroup >
26+ </actionGroups >
Original file line number Diff line number Diff line change 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 =" AdminScopeSelectionShouldBeDisabledOnMediaGalleryProductAttributeEditTest" >
11+ <annotations >
12+ <features value =" Catalog" />
13+ <stories value =" Attributes Updating" />
14+ <group value =" Catalog" />
15+ <title value =" Admin should not able to change Scope of Media Gallery product attribute" />
16+ <description value =" Admin should not able to change Scope of Media Gallery product attribute" />
17+ <severity value =" MAJOR" />
18+ <useCaseId value =" MC-38156" />
19+ <testCaseId value =" AC-1337" />
20+ </annotations >
21+ <before >
22+ <actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAdmin" />
23+ </before >
24+ <after >
25+ <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutOfAdmin" />
26+ </after >
27+
28+ <actionGroup ref =" AdminNavigateToProductAttributeEditPageActionGroup" stepKey =" navigateToMediaGalleryProductAttribute" >
29+ <argument name =" ProductAttributeLabel" value =" Media Gallery" />
30+ </actionGroup >
31+
32+ <click selector =" {{AdvancedAttributePropertiesSection.AdvancedAttributePropertiesSectionToggle}}" stepKey =" clickAdvancedAttributePropertiesSectionToggle" />
33+
34+ <assertElementContainsAttribute stepKey =" assertTheScopeSelectionIsDisabled" >
35+ <expectedResult selector =" {{AdvancedAttributePropertiesSection.Scope}}" attribute =" disabled" type =" string" ></expectedResult >
36+ </assertElementContainsAttribute >
37+
38+ </test >
39+ </tests >
40+
You can’t perform that action at this time.
0 commit comments