Skip to content

Commit ec0e649

Browse files
committed
Refactoring-CreateProductAttributeEntityWithReservedKeysTest
1 parent 177254d commit ec0e649

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/CreateProductAttributeEntityTest/CreateProductAttributeEntityWithReservedKeysTest.xml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,28 @@
2626
</after>
2727

2828
<!--Navigate to Stores > Attributes > Product.-->
29-
<amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="goToProductAttributesGrid"/>
29+
<!--<amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="goToProductAttributesGrid"/>-->
30+
<actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="goToProductAttributesGrid"/>
3031

3132
<!--Create new Product Attribute as TextField, with type_id code.-->
3233
<actionGroup ref="CreateProductAttributeActionGroup" stepKey="createAttribute">
3334
<argument name="attribute" value="ProductTypeIdAttribute"/>
3435
</actionGroup>
35-
<see stepKey="seeErrorMessage" selector="{{AdminMessagesSection.errorMessage}}" userInput="Code (type_id) is a reserved key and cannot be used as attribute code."/>
36+
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeErrorMessage">
37+
<argument name="messageType" value="error"/>
38+
<argument name="message" value="Code (type_id) is a reserved key and cannot be used as attribute code."/>
39+
</actionGroup>
3640

3741
<!--Navigate to Stores > Attributes > Product.-->
38-
<amOnPage url="{{AdminProductAttributeGridPage.url}}" stepKey="backToProductAttributesGrid"/>
42+
<actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="backToProductAttributesGrid"/>
3943

4044
<!--Create new Product Attribute as TextField, with product_type code.-->
4145
<actionGroup ref="CreateProductAttributeActionGroup" stepKey="createAttribute2">
4246
<argument name="attribute" value="ProductProductTypeAttribute"/>
4347
</actionGroup>
44-
45-
<see stepKey="seeErrorMessage2" selector="{{AdminMessagesSection.errorMessage}}" userInput="Code (product_type) is a reserved key and cannot be used as attribute code."/>
48+
<actionGroup ref="AssertMessageInAdminPanelActionGroup" stepKey="seeErrorMessage2">
49+
<argument name="messageType" value="error"/>
50+
<argument name="message" value="Code (product_type) is a reserved key and cannot be used as attribute code."/>
51+
</actionGroup>
4652
</test>
4753
</tests>

0 commit comments

Comments
 (0)