|
71 | 71 | <!--Verify customer see default simple product name on magento storefront page -->
|
72 | 72 | <amOnPage url="{{StorefrontProductPage.url($$initialSimpleProduct.custom_attributes[url_key]$$)}}" stepKey="goToMagentoStorefrontPage"/>
|
73 | 73 | <waitForPageLoad stepKey="waitForStoreFrontProductPageLoad"/>
|
74 |
| - <fillField selector="{{StorefrontQuickSearchResultsSection.searchTextBox}}" userInput="$$initialSimpleProduct.sku$$" stepKey="fillDefaultSimpleProductSkuInSearchTextBox"/> |
75 |
| - <waitForPageLoad stepKey="waitForSearchTextBox"/> |
76 |
| - <click selector="{{StorefrontQuickSearchResultsSection.searchTextBoxButton}}" stepKey="clickSearchTextBoxButton"/> |
77 |
| - <waitForPageLoad stepKey="waitForSearch"/> |
78 |
| - <see selector="{{StorefrontQuickSearchResultsSection.productLink}}" userInput="$$initialSimpleProduct.name$$" stepKey="seeDefaultProductName"/> |
| 74 | + |
| 75 | + <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="fillDefaultSimpleProductSkuInSearchTextBox"> |
| 76 | + <argument name="phrase" value="$$initialSimpleProduct.sku$$"/> |
| 77 | + </actionGroup> |
| 78 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSearchTextBox"/> |
| 79 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickSearchTextBoxButton"/> |
| 80 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSearch"/> |
| 81 | + <actionGroup ref="StorefrontAssertProductNameOnProductMainPageActionGroup" stepKey="seeDefaultProductName"> |
| 82 | + <argument name="productName" value="$$initialSimpleProduct.name$$"/> |
| 83 | + </actionGroup> |
79 | 84 |
|
80 | 85 | <!--Verify customer see simple product with updated name on magento storefront page under store view section -->
|
81 | 86 | <click selector="{{StorefrontHeaderSection.storeViewSwitcher}}" stepKey="clickStoreViewSwitcher"/>
|
82 | 87 | <waitForPageLoad stepKey="waitForStoreSwitcherLoad"/>
|
83 | 88 | <click selector="{{StorefrontHeaderSection.storeView(customStoreFR.name)}}" stepKey="clickStoreViewOption"/>
|
84 |
| - <fillField selector="{{StorefrontQuickSearchResultsSection.searchTextBox}}" userInput="$$initialSimpleProduct.sku$$" stepKey="fillDefaultSimpleProductSkuInSearch"/> |
85 |
| - <waitForPageLoad stepKey="waitForSearchTextBoxLoad"/> |
86 |
| - <click selector="{{StorefrontQuickSearchResultsSection.searchTextBoxButton}}" stepKey="clickSearchTextButton"/> |
87 |
| - <waitForPageLoad stepKey="waitForTextSearchLoad"/> |
88 |
| - <see selector="{{StorefrontQuickSearchResultsSection.productLink}}" userInput="{{simpleProductDataOverriding.name}}" stepKey="seeUpdatedSimpleProductName"/> |
| 89 | + |
| 90 | + <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="fillDefaultSimpleProductSkuInSearch"> |
| 91 | + <argument name="phrase" value="$$initialSimpleProduct.sku$$"/> |
| 92 | + </actionGroup> |
| 93 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForSearchTextBoxLoad"/> |
| 94 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="clickSearchTextButton"/> |
| 95 | + <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForTextSearchLoad"/> |
| 96 | + <actionGroup ref="StorefrontAssertProductNameOnProductMainPageActionGroup" stepKey="seeUpdatedSimpleProductName"> |
| 97 | + <argument name="productName" value="{{simpleProductDataOverriding.name}}"/> |
| 98 | + </actionGroup> |
| 99 | + |
89 | 100 | </test>
|
90 | 101 | </tests>
|
0 commit comments