|
18 | 18 | <testCaseId value="MC-12180"/>
|
19 | 19 | <group value="persistent"/>
|
20 | 20 | <group value="widget"/>
|
| 21 | + <group value="catalog_widget"/> |
21 | 22 | <skip>
|
22 | 23 | <issueId value="MC-15741"/>
|
23 | 24 | </skip>
|
|
77 | 78 | </actionGroup>
|
78 | 79 | <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="openCategoryPageAfterAddedProductToCart"/>
|
79 | 80 | <!--The Recently Viewed widget displays Simple Product 1 and Simple Product 2-->
|
80 |
| - <waitForElementVisible selector="{{StorefrontWidgetsSection.widgetRecentlyViewedProductsGrid}}" stepKey="waitWidgetRecentlyViewedProductsGrid"/> |
81 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyViewedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="seeSimpleProductInRecentlyViewedWidget"/> |
82 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyViewedProductsGrid}}" userInput="$$createSecondSimpleProduct.name$$" stepKey="seeSecondSimpleProductInRecentlyViewedWidget"/> |
| 81 | + <actionGroup ref="StorefrontAssertProductInRecentlyViewedWidgetActionGroup" stepKey="seeSimpleProductInRecentlyViewedWidget"> |
| 82 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 83 | + </actionGroup> |
| 84 | + <actionGroup ref="StorefrontAssertProductInRecentlyViewedWidgetActionGroup" stepKey="seeSecondSimpleProductInRecentlyViewedWidget"> |
| 85 | + <argument name="product" value="$$createSecondSimpleProduct$$"/> |
| 86 | + </actionGroup> |
83 | 87 |
|
84 | 88 | <!--Add Simple Product 1 and Simple Product 2 to Wishlist-->
|
85 | 89 | <actionGroup ref="StorefrontCustomerAddCategoryProductToWishlistActionGroup" stepKey="addSimpleProductToWishlist">
|
|
114 | 118 | </actionGroup>
|
115 | 119 |
|
116 | 120 | <!--Click Clear all in the Compare Products widget-->
|
117 |
| - <actionGroup ref="StorefrontClearCompareActionGroup" stepKey="asd"/> |
| 121 | + <actionGroup ref="StorefrontClearCompareActionGroup" stepKey="clearCompareList"/> |
118 | 122 | <!--The Recently Compared widget displays Simple Product 1 and Simple Product 2-->
|
119 |
| - <waitForElementVisible selector="{{StorefrontWidgetsSection.widgetRecentlyComparedProductsGrid}}" stepKey="waitWidgetRecentlyComparedProductsGrid"/> |
120 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyComparedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSimpleProductInRecentlyComparedWidget"/> |
121 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyComparedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSecondSimpleProductInRecentlyComparedWidget"/> |
| 123 | + <actionGroup ref="StorefrontAssertProductInRecentlyComparedWidgetActionGroup" stepKey="checkSimpleProductInRecentlyComparedWidget"> |
| 124 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 125 | + </actionGroup> |
| 126 | + <actionGroup ref="StorefrontAssertProductInRecentlyComparedWidgetActionGroup" stepKey="checkSecondSimpleProductInRecentlyComparedWidget"> |
| 127 | + <argument name="product" value="$$createSecondSimpleProduct$$"/> |
| 128 | + </actionGroup> |
122 | 129 |
|
123 | 130 | <!--Place the order-->
|
124 | 131 | <amOnPage url="{{CheckoutCartPage.url}}" stepKey="goToShoppingCartPage"/>
|
|
127 | 134 | </actionGroup>
|
128 | 135 | <!--The Recently Ordered widget displays Simple Product 1 and Simple Product 2-->
|
129 | 136 | <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="openCategoryPageToCheckProductsInRecentlyOrderedWidget"/>
|
130 |
| - <waitForElementVisible selector="{{StorefrontWidgetsSection.widgetRecentlyOrderedProductsGrid}}" stepKey="waitWidgetRecentlyOrderedProductsGrid"/> |
131 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyOrderedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSimpleProductInRecentlyOrderedWidget"/> |
132 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyOrderedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSecondSimpleProductInRecentlyOrderedWidget"/> |
| 137 | + <actionGroup ref="StorefrontAssertProductInRecentlyOrderedWidgetActionGroup" stepKey="checkSimpleProductInRecentlyOrderedWidget"> |
| 138 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 139 | + </actionGroup> |
| 140 | + <actionGroup ref="StorefrontAssertProductInRecentlyOrderedWidgetActionGroup" stepKey="checkSecondSimpleProductInRecentlyOrderedWidget"> |
| 141 | + <argument name="product" value="$$createSecondSimpleProduct$$"/> |
| 142 | + </actionGroup> |
133 | 143 |
|
134 | 144 | <!--Sign out and check that widgets persist the information about the items-->
|
135 | 145 | <actionGroup ref="StorefrontSignOutActionGroup" stepKey="logoutFromCustomerToCheckThatWidgetsPersist"/>
|
136 | 146 | <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="openCategoryPageAfterLogoutFromCustomer"/>
|
137 | 147 | <see userInput="Welcome, $$createCustomer.firstname$$ $$createCustomer.lastname$$!" selector="{{StorefrontPanelHeaderSection.WelcomeMessage}}" stepKey="checkWelcomeMessageAfterLogoutFromCustomer"/>
|
138 | 148 | <seeElement selector="{{StorefrontPanelHeaderSection.notYouLink}}" stepKey="checkLinkNotYouAfterLogoutFromCustomer"/>
|
139 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyViewedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSimpleProductInRecentlyViewedWidgetAfterLogout"/> |
| 149 | + |
| 150 | + <actionGroup ref="StorefrontAssertProductInRecentlyViewedWidgetActionGroup" stepKey="checkSimpleProductInRecentlyViewedWidgetAfterLogout"> |
| 151 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 152 | + </actionGroup> |
140 | 153 | <actionGroup ref="StorefrontCustomerCheckProductInWishlistSidebar" stepKey="checkSimpleProductInWishlistSidebarAfterLogout">
|
141 | 154 | <argument name="productVar" value="$$createSimpleProduct$$"/>
|
142 | 155 | </actionGroup>
|
143 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyComparedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSimpleProductInRecentlyComparedWidgetAfterLogout"/> |
144 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyOrderedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSimpleProductInRecentlyOrderedWidgetAfterLogout"/> |
| 156 | + <actionGroup ref="StorefrontAssertProductInRecentlyComparedWidgetActionGroup" stepKey="checkSimpleProductInRecentlyComparedWidgetAfterLogout"> |
| 157 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 158 | + </actionGroup> |
| 159 | + <actionGroup ref="StorefrontAssertProductInRecentlyOrderedWidgetActionGroup" stepKey="checkSimpleProductInRecentlyOrderedWidgetAfterLogout"> |
| 160 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 161 | + </actionGroup> |
145 | 162 |
|
146 | 163 | <!--Click the *Not you?* link and check the price for Simple Product-->
|
147 | 164 | <click selector="{{StorefrontPanelHeaderSection.notYouLink}}" stepKey="clickLinkNotYou"/>
|
| 165 | + <waitForPageLoad stepKey="waitForPageLoadAfterClickLinkNotYou"/> |
148 | 166 | <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="openCategoryPageAfterClickNotYou"/>
|
149 | 167 | <see userInput="Default welcome msg!" selector="{{StorefrontPanelHeaderSection.WelcomeMessage}}" stepKey="checkWelcomeMessageAfterClickLinkNotYou"/>
|
150 | 168 | <dontSee selector="{{StorefrontWidgetsSection.widgetRecentlyViewedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="dontSeeProductInRecentlyViewedWidget"/>
|
|
158 | 176 | </actionGroup>
|
159 | 177 | <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="openCategoryPageToCheckWidgets"/>
|
160 | 178 | <see userInput="Welcome, $$createCustomer.firstname$$ $$createCustomer.lastname$$!" selector="{{StorefrontPanelHeaderSection.WelcomeMessage}}" stepKey="checkWelcomeMessageAfterLogin"/>
|
161 |
| - <waitForElementVisible selector="{{StorefrontCustomerWishlistSidebarSection.ProductTitleByName($$createSimpleProduct.name$$)}}" stepKey="checkSimpleProductNameInWishlistSidebarAfterLogin"/> |
162 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyViewedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSimpleProductInRecentlyViewedWidgetAfterLogin"/> |
163 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyComparedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSimpleProductInRecentlyComparedWidgetAfterLogin"/> |
164 |
| - <see selector="{{StorefrontWidgetsSection.widgetRecentlyOrderedProductsGrid}}" userInput="$$createSimpleProduct.name$$" stepKey="checkSimpleProductInRecentlyOrderedWidgetAfterLogin"/> |
| 179 | + |
| 180 | + <actionGroup ref="StorefrontCustomerCheckProductInWishlistSidebar" stepKey="checkSimpleProductNameInWishlistSidebarAfterLogin"> |
| 181 | + <argument name="productVar" value="$$createSimpleProduct$$"/> |
| 182 | + </actionGroup> |
| 183 | + <actionGroup ref="StorefrontAssertProductInRecentlyViewedWidgetActionGroup" stepKey="checkSimpleProductInRecentlyViewedWidgetAfterLogin"> |
| 184 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 185 | + </actionGroup> |
| 186 | + <actionGroup ref="StorefrontAssertProductInRecentlyComparedWidgetActionGroup" stepKey="checkSimpleProductInRecentlyComparedWidgetAfterLogin"> |
| 187 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 188 | + </actionGroup> |
| 189 | + <actionGroup ref="StorefrontAssertProductInRecentlyOrderedWidgetActionGroup" stepKey="checkSimpleProductInRecentlyOrderedWidgetAfterLogin"> |
| 190 | + <argument name="product" value="$$createSimpleProduct$$"/> |
| 191 | + </actionGroup> |
165 | 192 | </test>
|
166 | 193 | </tests>
|
0 commit comments