File tree Expand file tree Collapse file tree 4 files changed +44
-2
lines changed Expand file tree Collapse file tree 4 files changed +44
-2
lines changed Original file line number Diff line number Diff line change @@ -914,7 +914,8 @@ private function joinPositionField(
914
914
foreach ($ searchCriteria ->getFilterGroups () as $ filterGroup ) {
915
915
foreach ($ filterGroup ->getFilters () as $ filter ) {
916
916
if ($ filter ->getField () === 'category_id ' ) {
917
- $ categoryIds [] = explode (', ' , $ filter ->getValue ());
917
+ $ filterValue = $ filter ->getValue ();
918
+ $ categoryIds [] = is_array ($ filterValue ) ? $ filterValue : explode (', ' , $ filterValue );
918
919
}
919
920
}
920
921
}
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 =" AssertStorefrontAttributeOptionQuantityInLayeredNavigationActionGroup" extends =" AssertStorefrontAttributeOptionPresentInLayeredNavigationActionGroup" >
12
+ <annotations >
13
+ <description >Asserts visible attribute option quantity</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" attributeOptionQuantity" type =" string" defaultValue =" 1" />
17
+ </arguments >
18
+ <see selector =" {{StorefrontCategorySidebarSection.visibleOptionQty(attributeOptionPosition)}}" userInput =" {{attributeOptionQuantity}}" after =" assertAttributeOptionInLayeredNavigation" stepKey =" assertOptionQuantity" />
19
+ </actionGroup >
20
+ </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
+
9
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" StorefrontAssertSubCategoryNameIsNotShownInMenuActionGroup" extends =" StorefrontAssertCategoryNameIsNotShownInMenuActionGroup" >
12
+ <annotations >
13
+ <description >Validate that the subcategory is not present in menu on Frontend.</description >
14
+ </annotations >
15
+ <arguments >
16
+ <argument name =" parentCategoryName" type =" string" />
17
+ </arguments >
18
+ <moveMouseOver selector =" {{StorefrontHeaderSection.NavigationCategoryByName(parentCategoryName)}}" before =" doNotSeeCatergoryInStoreFront" stepKey =" showSubCategories" />
19
+ </actionGroup >
20
+ </actionGroups >
Original file line number Diff line number Diff line change 16
16
<element name =" filterOptionByLabel" type =" button" selector =" div.filter-options-item div[data-option-label='{{optionLabel}}']" parameterized =" true" />
17
17
<element name =" removeFilter" type =" button" selector =" div.filter-current .remove" timeout =" 30" />
18
18
<element name =" activeFilterOptions" type =" text" selector =" .filter-options-item.active .items" />
19
- <element name =" activeFilterOptionItemByPosition" type =" text" selector =" .filter-options-item.active .items li:nth-child({{itemPosition}}) a" parameterized =" true" />
19
+ <element name =" activeFilterOptionItemByPosition" type =" text" selector =" .filter-options-item.active .items li:nth-child({{itemPosition}}) a" parameterized =" true" timeout = " 30 " />
20
20
<element name =" enabledFilterOptionItemByLabel" type =" text" selector =" //div[@class='filter-options']//li[@class='item']//a[contains(text(), '{{optionLabel}}')]" parameterized =" true" timeout =" 30" />
21
21
<element name =" disabledFilterOptionItemByLabel" type =" text" selector =" //div[@class='filter-options']//li[@class='item' and contains(text(), '{{optionLabel}}')]" parameterized =" true" timeout =" 30" />
22
+ <element name =" visibleOptionQty" type =" text" selector =" .filter-options-item.active .items li:nth-child({{itemPosition}}) a .count" parameterized =" true" timeout =" 30" />
22
23
</section >
23
24
</sections >
You can’t perform that action at this time.
0 commit comments