Skip to content

Commit 793b8c8

Browse files
author
Mohan Ahuja
committed
ACP2E-345: Unable to save product URL key with a hyphen "-" at end.
- Updated MFTF test according to updated solution.
1 parent 7583129 commit 793b8c8

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

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

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,17 @@
2828
<waitForPageLoad stepKey="WaitForDropDownSEO"/>
2929

3030
<fillField stepKey="fillUrlKey1" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="example-page-"/>
31-
<click stepKey="blueFromUrlKey1" selector="{{AdminProductSEOSection.metaTitleInput}}"/>
31+
<click stepKey="blurFromUrlKey1" selector="{{AdminProductSEOSection.metaTitleInput}}"/>
3232
<see selector="{{AdminProductFormSection.fieldError('url_key')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="seeLastHyphenErrorMessage"/>
3333

3434
<clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey2"/>
35-
<fillField stepKey="fillUrlKey2" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="Example-Page-"/>
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"/>
35+
<fillField stepKey="fillUrlKey2" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="-Example-Page"/>
36+
<click stepKey="blurFromUrlKey2" selector="{{AdminProductSEOSection.metaTitleInput}}"/>
37+
<see selector="{{AdminProductFormSection.fieldError('url_key')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="seeFirstHyphenErrorMessage"/>
3838

3939
<clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey3"/>
40-
<fillField stepKey="fillUrlKey3" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="example_page."/>
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"/>
43-
44-
<clearField selector="{{AdminProductFormBundleSection.urlKey}}" stepKey="clearFieldUrlKey4"/>
45-
<click stepKey="blueFromUrlKey4" selector="{{AdminProductSEOSection.metaTitleInput}}"/>
46-
<fillField stepKey="fillUrlKey4" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="example-page-test"/>
40+
<click stepKey="blurFromUrlKey3" selector="{{AdminProductSEOSection.metaTitleInput}}"/>
41+
<fillField stepKey="fillUrlKey3" selector="{{AdminProductFormBundleSection.urlKey}}" userInput="example-page-test"/>
4742
<dontSee selector="{{AdminProductFormSection.fieldError('url_key')}}" userInput="Please enter a valid URL Key (Ex: example-page)." stepKey="dontSeeErrorMessage"/>
4843
</test>
4944
</tests>

0 commit comments

Comments
 (0)