Skip to content

Commit ded26ea

Browse files
committed
MC-249: Guest customer should be able to search configurable product by attributes of child products
- Add the search selectors to a better section
1 parent 28e371b commit ded26ea

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/ActionGroup/AdminProductActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191
<argument name="description" defaultValue="sampleShortDescription"/>
192192
</arguments>
193193
<click stepKey="clickContentDropdown" selector="{{AdminProductContentSection.sectionHeader}}"/>
194+
<waitForPageLoad stepKey="dropdownWait"/>
194195
<fillField stepKey="fillShortDescription" selector="{{AdminProductContentSection.shortDescriptionTextArea}}" userInput="{{description}}"/>
195196
<scrollToTopOfPage stepKey="scrollToTop"/>
196197
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct"/>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/ConfigurableProduct/Test/StorefrontConfigurableProductChildSearchTest.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<description value="Guest customer should be able to search configurable product by attributes of child products"/>
1717
<severity value="MAJOR"/>
1818
<testCaseId value="MC-249"/>
19-
<group value="ConfigurableProduct"/>
19+
<group value="Levi"/>
2020
</annotations>
2121
<before>
2222
<!-- TODO: This should be converted to an actionGroup once MQE-993 is fixed. -->
@@ -126,7 +126,7 @@
126126
<deleteData createDataKey="createCategory" stepKey="deleteApiCategory"/>
127127
</after>
128128

129-
<!-- Add a description to the firt simple product -->
129+
<!-- Add a description to the first simple product -->
130130
<amOnPage stepKey="goToProductGrid" url="{{ProductCatalogPage.url}}"/>
131131
<waitForPageLoad stepKey="waitForProductGridLoad"/>
132132
<actionGroup stepKey="searchForSimpleProduct" ref="filterProductGridBySku2">
@@ -146,18 +146,18 @@
146146
<!-- Quick search the storefront for the first attribute option -->
147147
<amOnPage stepKey="goToStoreFront" url="{{StorefrontHomePage.url}}"/>
148148
<waitForPageLoad stepKey="waitForStorefront"/>
149-
<fillField stepKey="searchStorefront1" selector="{{StorefrontPanelHeaderSection.search}}" userInput="$$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$"/>
150-
<click stepKey="clickSearch1" selector="{{StorefrontPanelHeaderSection.searchButton}}"/>
149+
<fillField stepKey="searchStorefront1" selector="{{StorefrontQuickSearchSection.searchPhrase}}" userInput="$$createConfigProductAttributeSelectOption1.option[store_labels][0][label]$$"/>
150+
<click stepKey="clickSearch1" selector="{{StorefrontQuickSearchSection.searchButton}}"/>
151151
<seeElement stepKey="seeProduct1" selector="{{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}"/>
152152

153153
<!-- Quick search the storefront for the second attribute option -->
154-
<fillField stepKey="searchStorefront2" selector="{{StorefrontPanelHeaderSection.search}}" userInput="$$createConfigProductAttributeOption1Multiselect.option[store_labels][0][label]$$"/>
155-
<click stepKey="clickSearch2" selector="{{StorefrontPanelHeaderSection.searchButton}}"/>
154+
<fillField stepKey="searchStorefront2" selector="{{StorefrontQuickSearchSection.searchPhrase}}" userInput="$$createConfigProductAttributeOption1Multiselect.option[store_labels][0][label]$$"/>
155+
<click stepKey="clickSearch2" selector="{{StorefrontQuickSearchSection.searchButton}}"/>
156156
<seeElement stepKey="seeProduct2" selector="{{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}"/>
157157

158158
<!-- Quick search the storefront for the first product description -->
159-
<fillField stepKey="searchStorefront3" selector="{{StorefrontPanelHeaderSection.search}}" userInput="sampleShortDescription"/>
160-
<click stepKey="clickSearch3" selector="{{StorefrontPanelHeaderSection.searchButton}}"/>
159+
<fillField stepKey="searchStorefront3" selector="{{StorefrontQuickSearchSection.searchPhrase}}" userInput="sampleShortDescription"/>
160+
<click stepKey="clickSearch3" selector="{{StorefrontQuickSearchSection.searchButton}}"/>
161161
<seeElement stepKey="seeProduct3" selector="{{StorefrontCategoryProductSection.ProductTitleByName('$$createConfigProduct.name$$')}}"/>
162162
</test>
163163
</tests>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Customer/Section/StorefrontPanelHeaderSection.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,5 @@
1111
<section name="StorefrontPanelHeaderSection">
1212
<element name="WelcomeMessage" type="text" selector=".greet.welcome span"/>
1313
<element name="createAnAccountLink" type="select" selector=".panel.header li:nth-child(3)"/>
14-
<element name="search" type="input" selector="#search"/>
15-
<element name="searchButton" type="button" selector=".actions button[title='Search']" timeout="30"/>
1614
</section>
1715
</sections>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Search/Section/StorefrontQuickSearchSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
1111
<section name="StorefrontQuickSearchSection">
1212
<element name="searchPhrase" type="input" selector="#search"/>
13-
<element name="searchButton" type="button" selector="button.action.search"/>
13+
<element name="searchButton" type="button" selector="button.action.search" timeout="30"/>
1414
</section>
1515
</sections>

0 commit comments

Comments
 (0)