|
5 | 5 | * All Rights Reserved.
|
6 | 6 | */
|
7 | 7 | -->
|
| 8 | + |
8 | 9 | <tests
|
9 | 10 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 11 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 | 12 | <test name="StoreFrontUseEmptyFileAsACustomOptionOfFileTypeTest">
|
12 | 13 | <annotations>
|
| 14 | + <features value="Catalog"/> |
13 | 15 | <stories value="Empty file as a custom option for the file type"/>
|
14 | 16 | <title value="Product custom options"/>
|
15 | 17 | <description value="Verify the validation of an empty file as a custom option for the file type."/>
|
|
20 | 22 | <before>
|
21 | 23 | <!-- Pre-condition 1:Create Simple Product -->
|
22 | 24 | <createData entity="defaultSimpleProduct" stepKey="initialSimpleProduct"/>
|
23 |
| - <!-- Login As Admin --> |
24 |
| - <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
25 | 25 | </before>
|
26 | 26 | <after>
|
27 | 27 | <!-- Delete product, Logout from Admin -->
|
28 | 28 | <deleteData createDataKey="initialSimpleProduct" stepKey="deleteSimpleProduct"/>
|
29 | 29 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
30 | 30 | </after>
|
| 31 | + <!-- Login As Admin --> |
| 32 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
31 | 33 | <!-- Step1: Open a product page in Admin and Open Customizable options tab.-->
|
32 | 34 | <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openProductForEdit">
|
33 | 35 | <argument name="productId" value="$initialSimpleProduct.id$"/>
|
|
46 | 48 | </actionGroup>
|
47 | 49 | <!-- Step4: Upload an empty file -->
|
48 | 50 | <actionGroup ref="StorefrontAttachOptionFileActionGroup" stepKey="selectAndAttachFile">
|
49 |
| - <argument name="file" value="EmptyFilesAndValidationMessage.file1" /> |
| 51 | + <argument name="file" value="EmptyFiles.file1" /> |
50 | 52 | </actionGroup>
|
51 |
| - <!--Step4: Verify An error should be displayed when adding to cart --> |
52 |
| - <actionGroup ref="VerifyErrorMessageDisplayedWhileAddingProductWithEmptyFileToCartActionGroup" stepKey="addProductToCart"> |
| 53 | + <!--Step4 Assertion: Verify An error should be displayed when adding to cart --> |
| 54 | + <actionGroup ref="StorefrontVerifyErrorMessageDisplayedWhileAddingProductWithEmptyFileToCartActionGroup" stepKey="addProductToCart"> |
53 | 55 | <argument name="productName" value="$initialSimpleProduct.name$"/>
|
54 | 56 | </actionGroup>
|
55 | 57 | <!-- Open product in admin and delete existing custom option-->
|
|
73 | 75 | </actionGroup>
|
74 | 76 | <!--Step7: Upload an empty image -->
|
75 | 77 | <actionGroup ref="StorefrontAttachOptionFileActionGroup" stepKey="selectAndAttachTheFile">
|
76 |
| - <argument name="file" value="EmptyFilesAndValidationMessage.file2" /> |
| 78 | + <argument name="file" value="EmptyFiles.file2" /> |
77 | 79 | </actionGroup>
|
78 |
| - <!-- Step7: Verify An error should be displayed when adding to cart --> |
79 |
| - <actionGroup ref="VerifyErrorMessageDisplayedWhileAddingProductWithEmptyFileToCartActionGroup" stepKey="addTheProductToCart"> |
| 80 | + <!-- Step7 Assertion: Verify An error should be displayed when adding to cart --> |
| 81 | + <actionGroup ref="StorefrontVerifyErrorMessageDisplayedWhileAddingProductWithEmptyFileToCartActionGroup" stepKey="addTheProductToCart"> |
80 | 82 | <argument name="productName" value="$initialSimpleProduct.name$"/>
|
81 | 83 | </actionGroup>
|
82 | 84 | </test>
|
|
0 commit comments