|
21 | 21 | <group value="configuration"/>
|
22 | 22 | </annotations>
|
23 | 23 | <before>
|
24 |
| - <magentoCLI command="config:set {{WishlistEnable.path}} {{WishlistEnable.value}}" stepKey="enableWishlist"/> |
25 | 24 | <magentoCLI command="config:set {{WishlistHideFromSidebar.path}} {{WishlistHideFromSidebar.value}}" stepKey="disableWishlistInSidebar"/>
|
26 | 25 | <magentoCLI command="cache:clean config full_page block_html" stepKey="cleanCache"/>
|
27 | 26 | <createData entity="SimpleSubCategory" stepKey="createCategory"/>
|
|
34 | 33 | </actionGroup>
|
35 | 34 | </before>
|
36 | 35 | <after>
|
37 |
| - <magentoCLI command="config:set {{WishlistEnable.path}} {{WishlistEnable.value}}" stepKey="enableWishlist"/> |
38 | 36 | <magentoCLI command="config:set {{WishlistShowInSidebar.path}} {{WishlistShowInSidebar.value}}" stepKey="enableWishlistInSidebar"/>
|
39 |
| - <magentoCLI command="cache:clean config full_page block_html" stepKey="cacheClean"/> |
| 37 | + <magentoCLI command="cache:clean config full_page block_html" stepKey="cleanCache"/> |
40 | 38 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
41 | 39 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
|
42 | 40 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
|
|
55 | 53 | </actionGroup>
|
56 | 54 |
|
57 | 55 | <!-- Check the category page -->
|
58 |
| - <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="navigateToCategoryPageForLoggedInCustomer"/> |
| 56 | + <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="navigateToCategoryPageAsLoggedInCustomer"/> |
59 | 57 | <waitForPageLoad stepKey="waitForCategoryPageToLoadForLoggedInCustomer"/>
|
60 |
| - <dontSeeElementInDOM selector="{{StorefrontSidebarWishlistSection.wishlistBlock}}" stepKey="assertWishlistBlockIsNotVisibleOnCategoryPageForLoggedInCustomer"/> |
| 58 | + <actionGroup ref="StorefrontAssertWishlistBlockIsNotVisibleOnSidebarActionGroup" stepKey="assertWishlistBlockIsNotVisibleOnCategoryPageForLoggedInCustomer"/> |
61 | 59 |
|
62 | 60 | <!-- Check the search result page -->
|
63 | 61 | <actionGroup ref="StorefrontCheckQuickSearchActionGroup" stepKey="searchProductOnStorefrontForLoggedInCustomer">
|
64 | 62 | <argument name="phrase" value="$createProduct.name$"/>
|
65 | 63 | </actionGroup>
|
66 | 64 | <waitForPageLoad stepKey="waitForSearchPageToLoadForLoggedInCustomer"/>
|
67 |
| - <dontSeeElementInDOM selector="{{StorefrontSidebarWishlistSection.wishlistBlock}}" stepKey="assertWishlistBlockIsNotVisibleOnSearchResultPageForLoggedInCustomer"/> |
| 65 | + <actionGroup ref="StorefrontAssertWishlistBlockIsNotVisibleOnSidebarActionGroup" stepKey="assertWishlistBlockIsNotVisibleOnSearchResultPageForLoggedInCustomer"/> |
68 | 66 |
|
69 | 67 | <!-- Assert the Wishlist is not visible in sidebar for guest customer -->
|
70 | 68 | <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
|
71 | 69 |
|
72 | 70 | <!-- Check the category page -->
|
73 |
| - <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="navigateToCategoryPage"/> |
74 |
| - <waitForPageLoad stepKey="waitForCategoryPageToLoad"/> |
75 |
| - <dontSeeElementInDOM selector="{{StorefrontSidebarWishlistSection.wishlistBlock}}" stepKey="assertWishlistBlockIsNotVisibleOnCategoryPage"/> |
| 71 | + <amOnPage url="{{StorefrontCategoryPage.url($$createCategory.custom_attributes[url_key]$$)}}" stepKey="navigateToCategoryPageAsGuest"/> |
| 72 | + <waitForPageLoad stepKey="waitForCategoryPageToLoadForGuest"/> |
| 73 | + <actionGroup ref="StorefrontAssertWishlistBlockIsNotVisibleOnSidebarActionGroup" stepKey="assertWishlistBlockIsNotVisibleOnCategoryPageForGuest"/> |
76 | 74 |
|
77 | 75 | <!-- Check the search result page -->
|
78 |
| - <actionGroup ref="StorefrontCheckQuickSearchActionGroup" stepKey="searchProductOnStorefront"> |
| 76 | + <actionGroup ref="StorefrontCheckQuickSearchActionGroup" stepKey="searchProductOnStorefrontForGuest"> |
79 | 77 | <argument name="phrase" value="$createProduct.name$"/>
|
80 | 78 | </actionGroup>
|
81 |
| - <waitForPageLoad stepKey="waitForSearchPageToLoad"/> |
82 |
| - <dontSeeElementInDOM selector="{{StorefrontSidebarWishlistSection.wishlistBlock}}" stepKey="assertWishlistBlockIsNotVisibleOnSearchResultPage"/> |
| 79 | + <waitForPageLoad stepKey="waitForSearchPageToLoadForGuest"/> |
| 80 | + <actionGroup ref="StorefrontAssertWishlistBlockIsNotVisibleOnSidebarActionGroup" stepKey="assertWishlistBlockIsNotVisibleOnSearchResultPageForGuest"/> |
83 | 81 | </test>
|
84 | 82 | </tests>
|
0 commit comments