Skip to content

Commit 28b54fb

Browse files
committed
ACP2E-125: Cover MC-38156 with autotest
1 parent a6feb45 commit 28b54fb

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/NavigateToEditProductSystemAttributeActionGroup.xml renamed to app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminNavigateToProductAttributeEditPageActionGroup.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11-
<actionGroup name="NavigateToEditProductSystemAttributeActionGroup">
11+
<actionGroup name="AdminNavigateToProductAttributeEditPageActionGroup">
1212
<annotations>
13-
<description>Goes to the Product Attributes grid page. Filters the grid based on the provided Product Attribute Label. Clicks on the 1st row.</description>
13+
<description>Navigate to the given product attribute edit page by attribute label</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="ProductAttributeLabel" type="string"/>
1717
</arguments>
1818

1919
<amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="navigateToProductAttributeGrid"/>
20-
<fillField selector="{{AdminProductAttributeGridSection.GridFilterFrontEndLabel}}" userInput="{{ProductAttributeLabel}}" stepKey="navigateToAttributeEditPage1"/>
21-
<click selector="{{AdminProductAttributeGridSection.Search}}" stepKey="navigateToAttributeEditPage2"/>
22-
<waitForPageLoad stepKey="waitForPageLoad2"/>
23-
<click selector="{{AdminProductAttributeGridSection.FirstRow}}" stepKey="navigateToAttributeEditPage3"/>
24-
<waitForPageLoad stepKey="waitForPageLoad3"/>
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"/>
2525
</actionGroup>
2626
</actionGroups>

app/code/Magento/Catalog/Test/Mftf/Test/AdminEditMediaGalleryProductAttributeScopeTest.xml renamed to app/code/Magento/Catalog/Test/Mftf/Test/AdminScopeSelectionShouldBeDisabledOnMediaGalleryProductAttributeEditTest.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,31 @@
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
10-
<test name="AdminEditMediaGalleryProductAttributeScopeTest">
10+
<test name="AdminScopeSelectionShouldBeDisabledOnMediaGalleryProductAttributeEditTest">
1111
<annotations>
1212
<features value="Catalog"/>
1313
<stories value="Attributes Updating"/>
1414
<group value="Catalog"/>
15-
<title value="Admin is not able to change Scope of Media Gallery product attribute"/>
16-
<description value="Admin is not able to change Scope of Media Gallery product attribute"/>
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"/>
1717
<severity value="MAJOR"/>
1818
<useCaseId value="MC-38156"/>
19-
<testCaseId value="MC-40774"/>
19+
<testCaseId value="AC-1337"/>
2020
</annotations>
2121
<before>
22-
<actionGroup ref="AdminLoginActionGroup" stepKey="loginGetFromGeneralFile"/>
22+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAdmin"/>
2323
</before>
24+
<after>
25+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/>
26+
</after>
2427

25-
<actionGroup ref="NavigateToEditProductSystemAttributeActionGroup" stepKey="navigateToMediaGalleryProductAttribute">
28+
<actionGroup ref="AdminNavigateToProductAttributeEditPageActionGroup" stepKey="navigateToMediaGalleryProductAttribute">
2629
<argument name="ProductAttributeLabel" value="Media Gallery"/>
2730
</actionGroup>
2831

2932
<click selector="{{AdvancedAttributePropertiesSection.AdvancedAttributePropertiesSectionToggle}}" stepKey="clickAdvancedAttributePropertiesSectionToggle"/>
3033

31-
<assertElementContainsAttribute stepKey="assertElementContainsAttribute">
34+
<assertElementContainsAttribute stepKey="assertTheScopeSelectionIsDisabled">
3235
<expectedResult selector="{{AdvancedAttributePropertiesSection.Scope}}" attribute="disabled" type="string"></expectedResult>
3336
</assertElementContainsAttribute>
3437

0 commit comments

Comments
 (0)