Skip to content

Commit 5fb805f

Browse files
author
Mohan Ahuja
committed
ACP2E-345: Unable to save product URL key with a hyphen "-" at end.
- Updated MFTF test
1 parent 615dee1 commit 5fb805f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateSimpleProductTest/AdminCreateSimpleProductUrlKeyTest.xml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,27 @@
2323
<actionGroup ref="AdminOpenNewProductFormPageActionGroup" stepKey="goToCreateProduct"/>
2424

2525
<!--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"/>
2828
<waitForPageLoad stepKey="WaitForDropDownSEO"/>
2929

3030
<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"/>
3233

3334
<clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey2"/>
3435
<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"/>
3638

3739
<clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey3"/>
3840
<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"/>
4043

4144
<clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey4"/>
45+
<click stepKey="blueFromUrlKey4" selector="{{AdminProductSEOSection.metaTitleInput}}"/>
4246
<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"/>
4448
</test>
4549
</tests>

0 commit comments

Comments
 (0)