Skip to content

Commit a67ad11

Browse files
MC-36965: Create automated test for "[ES] Search with Layered Navigation and different types of attribute products.
1 parent e01c6ef commit a67ad11

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<element name="removeFilter" type="button" selector="div.filter-current .remove" timeout="30"/>
1818
<element name="activeFilterOptions" type="text" selector=".filter-options-item.active .items"/>
1919
<element name="activeFilterOptionItemByPosition" type="text" selector=".filter-options-item.active .items li:nth-child({{itemPosition}}) a" parameterized="true"/>
20-
<element name="enabledFilterOptionItemByLabel" type="text" selector="//div[@class='filter-options']//li[@class='item']//a[contains(text(), '{{optionLabel}}')]" parameterized="true"/>
21-
<element name="disabledFilterOptionItemByLabel" type="text" selector="//div[@class='filter-options']//li[@class='item' and contains(text(), '{{optionLabel}}')]" parameterized="true"/>
20+
<element name="enabledFilterOptionItemByLabel" type="text" selector="//div[@class='filter-options']//li[@class='item']//a[contains(text(), '{{optionLabel}}')]" parameterized="true" timeout="30"/>
21+
<element name="disabledFilterOptionItemByLabel" type="text" selector="//div[@class='filter-options']//li[@class='item' and contains(text(), '{{optionLabel}}')]" parameterized="true" timeout="30"/>
2222
</section>
2323
</sections>

app/code/Magento/LayeredNavigation/Test/Mftf/ActionGroup/StorefrontAssertAppliedFilterActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontAssertAppliedFilterActionGroup">
1212
<annotations>
13-
<description>Asserts applied filter label and value on category page is layered navigation block.</description>
13+
<description>Asserts applied filter label and value on storefront category page.</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="attributeLabel" type="string"/>

app/code/Magento/LayeredNavigation/Test/Mftf/ActionGroup/StorefrontFilterCategoryPageByAttributeOptionActionGroup.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="StorefrontFilterCategoryPageByAttributeOptionActionGroup">
1212
<annotations>
13-
<description>Filters category page by given filterable attribute and attribute option is layered navigation block.</description>
13+
<description>Filters storefront category page by given filterable attribute and attribute option.</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="attributeLabel" type="string"/>
@@ -19,6 +19,5 @@
1919
<waitForElementVisible selector="{{StorefrontCategorySidebarSection.filterOptionsTitle(attributeLabel)}}" stepKey="waitForFilterVisible"/>
2020
<conditionalClick selector="{{StorefrontCategorySidebarSection.filterOptionsTitle(attributeLabel)}}" dependentSelector="{{StorefrontCategorySidebarSection.activeFilterOptions}}" visible="false" stepKey="clickToExpandFilter"/>
2121
<click selector="{{StorefrontCategorySidebarSection.enabledFilterOptionItemByLabel(attributeOptionLabel)}}" stepKey="clickOnOption"/>
22-
<waitForPageLoad stepKey="waitForPageLoad"/>
2322
</actionGroup>
2423
</actionGroups>

app/code/Magento/LayeredNavigation/Test/Mftf/Test/StorefrontDropdownAttributeInLayeredNavigationTest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,14 @@
4848
<requiredEntity createDataKey="getSecondDropdownProductAttributeOption"/>
4949
<requiredEntity createDataKey="createCategory"/>
5050
</createData>
51+
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
5152
</before>
5253
<after>
5354
<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
5455
<deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/>
5556
<deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/>
5657
<deleteData createDataKey="createDropdownProductAttribute" stepKey="deleteDropdownProductAttribute"/>
58+
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
5759
</after>
5860
<actionGroup ref="StorefrontNavigateCategoryPageActionGroup" stepKey="openCategory">
5961
<argument name="category" value="$createCategory$"/>

0 commit comments

Comments
 (0)