File tree Expand file tree Collapse file tree 9 files changed +25
-32
lines changed
ConfigurableProduct/Test/Mftf/Test
Downloadable/Test/Mftf/Test
GroupedProduct/Test/Mftf/Test
Search/Test/Mftf/ActionGroup Expand file tree Collapse file tree 9 files changed +25
-32
lines changed Original file line number Diff line number Diff line change 40
40
<amOnPage url =" {{StorefrontProductPage.url($$createDynamicBundleProduct.name$$)}}" stepKey =" amOnBundleProductPage" />
41
41
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" Whoops, our bad..." stepKey =" seeWhoops" />
42
42
<!-- Search for the product by sku -->
43
- <fillField selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" $$createDynamicBundleProduct.sku$$" stepKey =" fillSearchBarByProductSku" />
44
- <waitForPageLoad stepKey =" waitForSearchButton" />
45
- <click selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" clickSearchButton" />
46
- <waitForPageLoad stepKey =" waitForSearchResults" />
43
+ <actionGroup ref =" StoreFrontQuickSearchActionGroup" stepKey =" searchByCreatedTerm" >
44
+ <argument name =" query" value =" $$createDynamicBundleProduct.sku$$" />
45
+ </actionGroup >
47
46
<!-- Should not see any search results -->
48
47
<dontSee userInput =" $$createDynamicBundleProduct.sku$$" selector =" {{StorefrontCatalogSearchMainSection.searchResults}}" stepKey =" dontSeeProduct" />
49
48
<see selector =" {{StorefrontCatalogSearchMainSection.message}}" userInput =" Your search returned no results." stepKey =" seeCantFindProductOneMessage" />
Original file line number Diff line number Diff line change 37
37
<amOnPage url =" {{StorefrontProductPage.url($$createFixedBundleProduct.name$$)}}" stepKey =" amOnBundleProductPage" />
38
38
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" Whoops, our bad..." stepKey =" seeWhoops" />
39
39
<!-- Search for the product by sku -->
40
- <fillField selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" $$createFixedBundleProduct.sku$$" stepKey =" fillSearchBarByProductSku" />
41
- <waitForPageLoad stepKey =" waitForSearchButton" />
42
- <click selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" clickSearchButton" />
43
- <waitForPageLoad stepKey =" waitForSearchResults" />
40
+ <actionGroup ref =" StoreFrontQuickSearchActionGroup" stepKey =" searchByCreatedTerm" >
41
+ <argument name =" query" value =" $$createFixedBundleProduct.sku$$" />
42
+ </actionGroup >
44
43
<!-- Should not see any search results -->
45
44
<dontSee userInput =" $$createFixedBundleProduct.sku$$" selector =" {{StorefrontCatalogSearchMainSection.searchResults}}" stepKey =" dontSeeProduct" />
46
45
<see selector =" {{StorefrontCatalogSearchMainSection.message}}" userInput =" Your search returned no results." stepKey =" seeCantFindProductOneMessage" />
Original file line number Diff line number Diff line change 38
38
<amOnPage url =" {{StorefrontProductPage.url($$createSimpleProduct.name$$)}}" stepKey =" amOnSimpleProductPage" />
39
39
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" Whoops, our bad..." stepKey =" seeWhoops" />
40
40
<!-- Search for the product by sku -->
41
- <fillField selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" $$createSimpleProduct.sku$$" stepKey =" fillSearchBarByProductSku" />
42
- <waitForPageLoad stepKey =" waitForSearchButton" />
43
- <click selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" clickSearchButton" />
44
- <waitForPageLoad stepKey =" waitForSearchResults" />
41
+ <actionGroup ref =" StoreFrontQuickSearchActionGroup" stepKey =" searchByCreatedTerm" >
42
+ <argument name =" query" value =" $$createSimpleProduct.sku$$" />
43
+ </actionGroup >
45
44
<!-- Should not see any search results -->
46
45
<dontSee userInput =" $$createSimpleProduct.sku$$" selector =" {{StorefrontCatalogSearchMainSection.searchResults}}" stepKey =" dontSeeProduct" />
47
46
<see selector =" {{StorefrontCatalogSearchMainSection.message}}" userInput =" Your search returned no results." stepKey =" seeCantFindProductOneMessage" />
Original file line number Diff line number Diff line change 37
37
<amOnPage url =" {{StorefrontProductPage.url($$createSimpleProduct.name$$)}}" stepKey =" amOnSimpleProductPage" />
38
38
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" Whoops, our bad..." stepKey =" seeWhoops" />
39
39
<!-- Search for the product by sku -->
40
- <fillField selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" $$createSimpleProduct.sku$$" stepKey =" fillSearchBarByProductSku" />
41
- <waitForPageLoad stepKey =" waitForSearchButton" />
42
- <click selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" clickSearchButton" />
43
- <waitForPageLoad stepKey =" waitForSearchResults" />
40
+ <actionGroup ref =" StoreFrontQuickSearchActionGroup" stepKey =" searchByCreatedTerm" >
41
+ <argument name =" query" value =" $$createSimpleProduct.sku$$" />
42
+ </actionGroup >
44
43
<!-- Should not see any search results -->
45
44
<dontSee userInput =" $$createSimpleProduct.sku$$" selector =" {{StorefrontCatalogSearchMainSection.searchResults}}" stepKey =" dontSeeProduct" />
46
45
<see selector =" {{StorefrontCatalogSearchMainSection.message}}" userInput =" Your search returned no results." stepKey =" seeCantFindProductOneMessage" />
Original file line number Diff line number Diff line change 38
38
<amOnPage url =" {{StorefrontProductPage.url($$createVirtualProduct.name$$)}}" stepKey =" amOnVirtualProductPage" />
39
39
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" Whoops, our bad..." stepKey =" seeWhoops" />
40
40
<!-- Search for the product by sku -->
41
- <fillField selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" $$createVirtualProduct.sku$$" stepKey =" fillSearchBarByProductSku" />
42
- <waitForPageLoad stepKey =" waitForSearchButton" />
43
- <click selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" clickSearchButton" />
44
- <waitForPageLoad stepKey =" waitForSearchResults" />
41
+ <actionGroup ref =" StoreFrontQuickSearchActionGroup" stepKey =" searchByCreatedTerm" >
42
+ <argument name =" query" value =" $$createVirtualProduct.sku$$" />
43
+ </actionGroup >
45
44
<!-- Should not see any search results -->
46
45
<dontSee userInput =" $$createVirtualProduct.sku$$" selector =" {{StorefrontCatalogSearchMainSection.searchResults}}" stepKey =" dontSeeProduct" />
47
46
<see selector =" {{StorefrontCatalogSearchMainSection.message}}" userInput =" Your search returned no results." stepKey =" seeCantFindProductOneMessage" />
Original file line number Diff line number Diff line change 36
36
<amOnPage url =" {{StorefrontProductPage.url($$createConfigurableProduct.name$$)}}" stepKey =" amOnConfigurableProductPage" />
37
37
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" Whoops, our bad..." stepKey =" seeWhoops" />
38
38
<!-- Search for the product by sku -->
39
- <fillField selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" $$createConfigurableProduct.sku$$" stepKey =" fillSearchBarByProductSku" />
40
- <waitForPageLoad stepKey =" waitForSearchButton" />
41
- <click selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" clickSearchButton" />
42
- <waitForPageLoad stepKey =" waitForSearchResults" />
39
+ <actionGroup ref =" StoreFrontQuickSearchActionGroup" stepKey =" searchBarByProductSku" >
40
+ <argument name =" query" value =" $$createConfigurableProduct.sku$$" />
41
+ </actionGroup >
43
42
<!-- Should not see any search results -->
44
43
<dontSee userInput =" $$createConfigurableProduct.sku$$" selector =" {{StorefrontCatalogSearchMainSection.searchResults}}" stepKey =" dontSeeProduct" />
45
44
<see selector =" {{StorefrontCatalogSearchMainSection.message}}" userInput =" Your search returned no results." stepKey =" seeCantFindProductOneMessage" />
Original file line number Diff line number Diff line change 44
44
<amOnPage url =" {{StorefrontProductPage.url($$createDownloadableProduct.name$$)}}" stepKey =" amOnDownloadableProductPage" />
45
45
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" Whoops, our bad..." stepKey =" seeWhoops" />
46
46
<!-- Search for the product by sku -->
47
- <fillField selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" $$createDownloadableProduct.sku$$" stepKey =" fillSearchBarByProductSku" />
48
- <waitForPageLoad stepKey =" waitForSearchButton" />
49
- <click selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" clickSearchButton" />
50
- <waitForPageLoad stepKey =" waitForSearchResults" />
47
+ <actionGroup ref =" StoreFrontQuickSearchActionGroup" stepKey =" searchByCreatedTerm" >
48
+ <argument name =" query" value =" $$createDownloadableProduct.sku$$" />
49
+ </actionGroup >
51
50
<!-- Should not see any search results -->
52
51
<dontSee userInput =" $$createDownloadableProduct.sku$$" selector =" {{StorefrontCatalogSearchMainSection.searchResults}}" stepKey =" dontSeeProduct" />
53
52
<see selector =" {{StorefrontCatalogSearchMainSection.message}}" userInput =" Your search returned no results." stepKey =" seeCantFindProductOneMessage" />
Original file line number Diff line number Diff line change 42
42
<amOnPage url =" {{StorefrontProductPage.url($$createGroupedProduct.name$$)}}" stepKey =" amOnGroupedProductPage" />
43
43
<see selector =" {{StorefrontProductInfoMainSection.productName}}" userInput =" Whoops, our bad..." stepKey =" seeWhoops" />
44
44
<!-- Search for the product by sku-->
45
- <fillField selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" $$createGroupedProduct.sku$$" stepKey =" fillSearchBarByProductSku" />
46
- <waitForPageLoad stepKey =" waitForSearchButton" />
47
- <click selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" clickSearchButton" />
48
- <waitForPageLoad stepKey =" waitForSearchResults" />
45
+ <actionGroup ref =" StoreFrontQuickSearchActionGroup" stepKey =" searchByCreatedTerm" >
46
+ <argument name =" query" value =" $$createGroupedProduct.sku$$" />
47
+ </actionGroup >
49
48
<!-- Should not see any search results -->
50
49
<dontSee userInput =" $$createGroupedProduct.sku$$" selector =" {{StorefrontCatalogSearchMainSection.searchResults}}" stepKey =" dontSeeProduct" />
51
50
<see selector =" {{StorefrontCatalogSearchMainSection.message}}" userInput =" Your search returned no results." stepKey =" seeCantFindProductOneMessage" />
Original file line number Diff line number Diff line change 16
16
<fillField stepKey =" fillSearchField" selector =" {{StorefrontQuickSearchSection.searchPhrase}}" userInput =" {{query}}" />
17
17
<waitForElementVisible selector =" {{StorefrontQuickSearchSection.searchButton}}" stepKey =" waitForSubmitButton" />
18
18
<click stepKey =" clickSearchButton" selector =" {{StorefrontQuickSearchSection.searchButton}}" />
19
+ <waitForPageLoad stepKey =" waitForSearchResults" />
19
20
</actionGroup >
20
21
</actionGroups >
You can’t perform that action at this time.
0 commit comments