Skip to content

Commit cc4a362

Browse files
committed
MC-29022: Custom attribute values cannot be saved in Admin panel
1 parent f07f1c3 commit cc4a362

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AssertStorefrontAttributeOptionPresentInLayeredNavigationActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
<waitForElementVisible selector="{{StorefrontCategorySidebarSection.filterOptionsTitle(attributeLabel)}}" stepKey="waitForAttributeVisible"/>
2121
<conditionalClick selector="{{StorefrontCategorySidebarSection.filterOptionsTitle(attributeLabel)}}" dependentSelector="{{StorefrontCategorySidebarSection.activeFilterOptions}}" visible="false" stepKey="clickToExpandAttribute"/>
2222
<waitForElementVisible selector="{{StorefrontCategorySidebarSection.activeFilterOptions}}" stepKey="waitForAttributeOptionsVisible"/>
23-
<see selector="{{StorefrontCategorySidebarSection.filterOptionItem}}" userInput="{{attributeOptionLabel}}" stepKey="assertAttributeOptionInLayeredNavigation"/>
23+
<see selector="{{StorefrontCategorySidebarSection.activeFilterOptionItem}}" userInput="{{attributeOptionLabel}}" stepKey="assertAttributeOptionInLayeredNavigation"/>
2424
</actionGroup>
2525
</actionGroups>

app/code/Magento/Catalog/Test/Mftf/Section/StorefrontCategorySidebarSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<element name="filterOptionByLabel" type="button" selector=" div.filter-options-item div[option-label='{{optionLabel}}']" parameterized="true"/>
1717
<element name="removeFilter" type="button" selector="div.filter-current .remove"/>
1818
<element name="activeFilterOptions" type="text" selector=".filter-options-item.active .items"/>
19-
<element name="filterOptionItem" type="text" selector=".filter-options-item.active .items li a"/>
19+
<element name="activeFilterOptionItem" type="text" selector=".filter-options-item.active .items li a"/>
2020
</section>
2121
<section name="StorefrontCategorySidebarMobileSection">
2222
<element name="shopByButton" type="button" selector="//div[contains(@class, 'filter-title')]/strong[contains(text(), 'Shop By')]"/>

app/code/Magento/Catalog/Test/Mftf/Test/AdminCheckCustomAttributeValuesAfterProductSaveTest.xml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,13 @@
4141
<!-- Delete created entities -->
4242
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
4343
<deleteData createDataKey="createMultiSelectProductAttribute" stepKey="deleteMultiSelectProductAttribute"/>
44-
<!-- Clear products grid filters -->
45-
<actionGroup ref="ClearProductsFilterActionGroup" stepKey="clearProductsGridFilters"/>
46-
<waitForPageLoad stepKey="waitForCleanProductsFilters"/>
4744
<!-- Logout from Admin page -->
48-
<actionGroup ref="logout" stepKey="logout"/>
45+
<actionGroup ref="logout" stepKey="logoutFromAdmin"/>
4946
</after>
5047

5148
<!-- Open created product for edit -->
52-
<actionGroup ref="SearchForProductOnBackendActionGroup" stepKey="searchForProductInProductsGrid">
53-
<argument name="product" value="$createSimpleProduct$"/>
54-
</actionGroup>
55-
<actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openProductForEdit">
56-
<argument name="product" value="$createSimpleProduct$"/>
57-
</actionGroup>
49+
<amOnPage url="{{AdminProductEditPage.url($createSimpleProduct.id$)}}" stepKey="goToProductEditPage"/>
50+
<waitForPageLoad stepKey="waitForProductPageLoad"/>
5851

5952
<!-- Add created attribute to the product -->
6053
<actionGroup ref="addProductAttributeInProductModal" stepKey="addAttributeToProduct">

0 commit comments

Comments
 (0)