|
23 | 23 | <actionGroup ref="AdminOpenNewProductFormPageActionGroup" stepKey="goToCreateProduct"/>
|
24 | 24 |
|
25 | 25 | <!--Trigger SEO drop down-->
|
26 |
| - <scrollTo selector="{{AdminProductFormBundleSection.seoDropdown}}" stepKey="moveToSEOSection"/> |
27 |
| - <click selector="{{AdminProductFormBundleSection.seoDropdown}}" stepKey="openDropDownIfClosed"/> |
| 26 | + <scrollTo selector="{{AdminProductSEOSection.sectionHeader}}" x="0" y="-80" stepKey="scrollToSearchEngineOptimization"/> |
| 27 | + <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="selectSearchEngineOptimization"/> |
28 | 28 | <waitForPageLoad stepKey="WaitForDropDownSEO"/>
|
29 | 29 |
|
30 | 30 | <fillField stepKey="fillUrlKey1" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="example-page-"/>
|
31 |
| - <see selector="{{AdminProductFormSection.fieldError('uid')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="seeLastHyphenErrorMessage"/> |
| 31 | + <click stepKey="blueFromUrlKey1" selector="{{AdminProductSEOSection.metaTitleInput}}"/> |
| 32 | + <see selector="{{AdminProductFormSection.fieldError('url_key')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="seeLastHyphenErrorMessage"/> |
32 | 33 |
|
33 | 34 | <clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey2"/>
|
34 | 35 | <fillField stepKey="fillUrlKey2" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="Example-Page-"/>
|
35 |
| - <see selector="{{AdminProductFormSection.fieldError('uid')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="seeCapitalLetterErrorMessage"/> |
| 36 | + <click stepKey="blueFromUrlKey2" selector="{{AdminProductSEOSection.metaTitleInput}}"/> |
| 37 | + <see selector="{{AdminProductFormSection.fieldError('url_key')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="seeCapitalLetterErrorMessage"/> |
36 | 38 |
|
37 | 39 | <clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey3"/>
|
38 | 40 | <fillField stepKey="fillUrlKey3" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="example_page."/>
|
39 |
| - <see selector="{{AdminProductFormSection.fieldError('uid')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="seeNotAllowedCharactersErrorMessage"/> |
| 41 | + <click stepKey="blueFromUrlKey3" selector="{{AdminProductSEOSection.metaTitleInput}}"/> |
| 42 | + <see selector="{{AdminProductFormSection.fieldError('url_key')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="seeNotAllowedCharactersErrorMessage"/> |
40 | 43 |
|
41 | 44 | <clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey4"/>
|
| 45 | + <click stepKey="blueFromUrlKey4" selector="{{AdminProductSEOSection.metaTitleInput}}"/> |
42 | 46 | <fillField stepKey="fillUrlKey4" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="example-page-test"/>
|
43 |
| - <dontSee selector="{{AdminProductFormSection.fieldError('uid')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="dontSeeErrorMessage"/> |
| 47 | + <dontSee selector="{{AdminProductFormSection.fieldError('url_key')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="dontSeeErrorMessage"/> |
44 | 48 | </test>
|
45 | 49 | </tests>
|
0 commit comments