Skip to content

Commit c5e08c8

Browse files
committed
MC-20336: Update tests related to Catalog Search and Swatches
"Fixed tests that are failing using elastic search engine."
1 parent d657e00 commit c5e08c8

4 files changed

+12
-0
lines changed

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontDisplayAllCharactersOnTextSwatchTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
<fillField selector="{{AdminManageSwatchSection.swatchTextByIndex('3')}}" userInput="123456789012345678901" stepKey="fillSwatch3" after="clickAddSwatch3"/>
3030
<fillField selector="{{AdminManageSwatchSection.swatchAdminDescriptionByIndex('3')}}" userInput="123456789012345678901BrownD" stepKey="fillDescription3" after="fillSwatch3"/>
3131

32+
<!--Run re-index task-->
33+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
34+
3235
<see selector="{{StorefrontCategorySidebarSection.attributeNthOption(ProductAttributeFrontendLabel.label, '3')}}" userInput="123456789012345678901" stepKey="seeGreen" after="seeBlue"/>
3336
<see selector="{{StorefrontCategorySidebarSection.attributeNthOption(ProductAttributeFrontendLabel.label, '4')}}" userInput="123456789012345678901" stepKey="seeBrown" after="seeGreen"/>
3437

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontFilterByImageSwatchTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@
103103
<argument name="image" value="TestImageAdobe"/>
104104
</actionGroup>
105105

106+
<!-- Run re-index task-->
107+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
108+
106109
<!-- Go to the category page -->
107110
<amOnPage url="$$createCategory.name$$.html" stepKey="amOnCategoryPage"/>
108111
<waitForPageLoad stepKey="waitForCategoryPage"/>

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontFilterByTextSwatchTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@
8282
<argument name="attributeCode" value="{{ProductAttributeFrontendLabel.label}}"/>
8383
</actionGroup>
8484

85+
<!--Run re-index task-->
86+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
87+
8588
<!-- Go to the category page -->
8689
<amOnPage url="$$createCategory.name$$.html" stepKey="amOnCategoryPage"/>
8790
<waitForPageLoad stepKey="waitForCategoryPage"/>

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontFilterByVisualSwatchTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@
9494
<argument name="attributeCode" value="{{ProductAttributeFrontendLabel.label}}"/>
9595
</actionGroup>
9696

97+
<!-- Run re-index task-->
98+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
99+
97100
<!-- Go to the category page -->
98101
<amOnPage url="$$createCategory.name$$.html" stepKey="amOnCategoryPage"/>
99102
<waitForPageLoad stepKey="waitForCategoryPage"/>

0 commit comments

Comments
 (0)