Skip to content

Commit c934b51

Browse files
committed
Refactoring-AdminCreateDuplicateProductTest
1 parent 9972de0 commit c934b51

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminCreateDuplicateProductTest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757

5858
<!-- Save the product and expect to see an error message -->
5959
<actionGroup ref="SaveProductFormNoSuccessCheckActionGroup" stepKey="tryToSaveProduct"/>
60-
<see selector="{{AdminProductFormSection.successMessage}}" userInput="The value specified in the URL Key field would generate a URL that already exists." stepKey="seeErrorMessage"/>
60+
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeErrorMessage">
61+
<argument name="messageType" value="error"/>
62+
<argument name="message" value="The value specified in the URL Key field would generate a URL that already exists."/>
63+
</actionGroup>
6164
</test>
6265
</tests>

0 commit comments

Comments
 (0)