|
11 | 11 | <annotations>
|
12 | 12 | <features value="Catalog"/>
|
13 | 13 | <stories value="Add/remove images and videos for all product types and category"/>
|
14 |
| - <title value="Admin should be able to remove Product Images assigned as Base, Small and Thumbnail from Simple Product"/> |
| 14 | + <title value="Remove Product Images assigned as Base, Small and Thumbnail from Simple Product"/> |
15 | 15 | <description value="Admin should be able to remove Product Images assigned as Base, Small and Thumbnail from Simple Product"/>
|
16 |
| - <severity value="BLOCKER"/> |
17 |
| - <testCaseId value="MC-191"/> |
18 |
| - <group value="Catalog"/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <testCaseId value="MC-25383"/> |
| 18 | + <group value="catalog"/> |
19 | 19 | </annotations>
|
20 | 20 |
|
21 | 21 | <before>
|
|
29 | 29 | <after>
|
30 | 30 | <deleteData createDataKey="category" stepKey="deletePreReqCategory"/>
|
31 | 31 | <deleteData createDataKey="product" stepKey="deleteProduct"/>
|
| 32 | + <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductsPage"/> |
| 33 | + <actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductGridFilters"/> |
32 | 34 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
|
33 | 35 | </after>
|
34 | 36 |
|
35 | 37 | <!-- Go to the product edit page -->
|
36 | 38 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex"/>
|
37 | 39 | <actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGrid"/>
|
38 | 40 | <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku">
|
39 |
| - <argument name="product" value="$$product$$"/> |
| 41 | + <argument name="product" value="$product$"/> |
40 | 42 | </actionGroup>
|
41 |
| - <actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProduct"/> |
| 43 | + <actionGroup ref="AdminProductGridSectionClickFirstRowActionGroup" stepKey="openProduct"/> |
42 | 44 |
|
43 | 45 | <!-- Set url key -->
|
44 |
| - <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="openSeoSection"/> |
45 |
| - <fillField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="$$product.name$$" stepKey="fillUrlKey"/> |
| 46 | + <comment userInput="BIC workaround" stepKey="openSeoSection"/> |
| 47 | + <comment userInput="BIC workaround" stepKey="fillUrlKey"/> |
46 | 48 |
|
47 | 49 | <!-- Expand images section -->
|
48 |
| - <click selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="expandImages"/> |
| 50 | + <actionGroup ref="AdminOpenProductImagesSectionActionGroup" stepKey="expandImages"/> |
49 | 51 |
|
50 | 52 | <!-- Upload and set Base image -->
|
51 | 53 | <attachFile selector="{{AdminProductImagesSection.imageFileUpload}}" userInput="adobe-base.jpg" stepKey="attach1"/>
|
|
87 | 89 | <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="saveProduct"/>
|
88 | 90 |
|
89 | 91 | <!-- Go to the product page and see the Base image -->
|
90 |
| - <amOnPage url="$$product.name$$.html" stepKey="goToProductPage"/> |
| 92 | + <amOnPage url="{{StorefrontProductPage.url($product.custom_attributes[url_key]$)}}" stepKey="goToProductPage"/> |
91 | 93 | <waitForPageLoad stepKey="wait4"/>
|
92 | 94 | <seeElement selector="{{StorefrontProductMediaSection.imageFile('/adobe-base')}}" stepKey="seeBase"/>
|
93 | 95 |
|
94 | 96 | <!-- Go to the category page and see the Small image -->
|
95 |
| - <amOnPage url="$$category.name$$.html" stepKey="goToCategoryPage"/> |
| 97 | + <amOnPage url="{{StorefrontCategoryPage.url($category.custom_attributes[url_key]$)}}" stepKey="goToCategoryPage"/> |
96 | 98 | <waitForPageLoad stepKey="wait3"/>
|
97 | 99 | <seeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('/adobe-small')}}" stepKey="seeThumb"/>
|
98 | 100 |
|
99 | 101 | <!-- Go to the admin grid and see the Thumbnail image -->
|
100 | 102 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex2"/>
|
101 | 103 | <actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGrid2"/>
|
102 | 104 | <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku2">
|
103 |
| - <argument name="product" value="$$product$$"/> |
| 105 | + <argument name="product" value="$product$"/> |
104 | 106 | </actionGroup>
|
105 | 107 | <seeElement selector="{{AdminProductGridSection.productThumbnailBySrc('/adobe-thumb')}}" stepKey="seeBaseInGrid"/>
|
106 | 108 |
|
107 | 109 | <!-- Go to the product edit page again -->
|
108 | 110 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex3"/>
|
109 | 111 | <actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGrid3"/>
|
110 | 112 | <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku3">
|
111 |
| - <argument name="product" value="$$product$$"/> |
| 113 | + <argument name="product" value="$product$"/> |
112 | 114 | </actionGroup>
|
113 |
| - <actionGroup ref="OpenProductForEditByClickingRowXColumnYInProductGridActionGroup" stepKey="openProduct3"/> |
114 |
| - <click selector="{{AdminProductImagesSection.productImagesToggle}}" stepKey="expandImages2"/> |
| 115 | + <actionGroup ref="AdminProductGridSectionClickFirstRowActionGroup" stepKey="openProduct3"/> |
| 116 | + <actionGroup ref="AdminOpenProductImagesSectionActionGroup" stepKey="expandImages2"/> |
115 | 117 |
|
116 | 118 | <!-- Remove all images -->
|
117 | 119 | <click selector="{{AdminProductImagesSection.nthRemoveImageBtn('1')}}" stepKey="removeImage1"/>
|
|
123 | 125 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="goToProductIndex4"/>
|
124 | 126 | <actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGrid4"/>
|
125 | 127 | <actionGroup ref="FilterProductGridBySkuActionGroup" stepKey="filterProductGridBySku4">
|
126 |
| - <argument name="product" value="$$product$$"/> |
| 128 | + <argument name="product" value="$product$"/> |
127 | 129 | </actionGroup>
|
128 | 130 | <dontSeeElement selector="{{AdminProductGridSection.productThumbnailBySrc('/adobe-thumb')}}" stepKey="dontSeeBaseInGrid"/>
|
129 | 131 | <seeElement selector="{{AdminProductGridSection.productThumbnailBySrc('/placeholder/thumbnail')}}" stepKey="seePlaceholderThumb"/>
|
130 | 132 |
|
131 | 133 | <!-- Check category page for placeholder -->
|
132 |
| - <amOnPage url="$$category.name$$.html" stepKey="goToCategoryPage2"/> |
| 134 | + <amOnPage url="{{StorefrontCategoryPage.url($category.custom_attributes[url_key]$)}}" stepKey="goToCategoryPage2"/> |
133 | 135 | <waitForPageLoad stepKey="wait7"/>
|
134 | 136 | <dontSeeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('/adobe-small')}}" stepKey="dontSeeThumb"/>
|
135 | 137 | <seeElement selector="{{StorefrontCategoryProductSection.ProductImageBySrc('placeholder/small_image')}}" stepKey="seePlaceholderSmall"/>
|
136 | 138 |
|
137 | 139 | <!-- Check product page for placeholder -->
|
138 |
| - <amOnPage url="$$product.name$$.html" stepKey="goToProductPage2"/> |
| 140 | + <amOnPage url="{{StorefrontProductPage.url($product.custom_attributes[url_key]$)}}" stepKey="goToProductPage2"/> |
139 | 141 | <waitForPageLoad stepKey="wait8"/>
|
140 | 142 | <dontSeeElement selector="{{StorefrontProductMediaSection.imageFile('/adobe-base')}}" stepKey="dontSeeBase"/>
|
141 | 143 | <seeElement selector="{{StorefrontProductMediaSection.imageFile('placeholder/image')}}" stepKey="seePlaceholderBase"/>
|
|
0 commit comments