|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <!-- |
3 | 3 | /** |
4 | | - * Copyright 2025 Adobe |
| 4 | + * Copyright 2025 Adobe |
5 | 5 | * All Rights Reserved. |
6 | 6 | */ |
7 | 7 | --> |
|
12 | 12 | <annotations> |
13 | 13 | <features value="Tax"/> |
14 | 14 | <stories value="Recently Viewed Widget Tax Price Display"/> |
15 | | - <title value="Verify price including and excluding tax in Recently Viewed Widget"/> |
| 15 | + <title value="Display tax inclusive and exclusive prices in Recently Viewed Widget"/> |
16 | 16 | <description value="Verify that Recently Viewed Widget displays correct prices including and excluding tax based on tax configuration"/> |
17 | 17 | <severity value="AVERAGE"/> |
18 | 18 | <testCaseId value="AC-8327"/> |
|
75 | 75 | <magentoCLI command="config:set {{CustomDisplayProductPricesInCatalog.path}} {{CustomDisplayProductPricesInCatalog.value}}" stepKey="setPriceDisplayToBothPrices"/> |
76 | 76 | </before> |
77 | 77 | <after> |
78 | | - <magentoCLI command="config:set tax/display/type 1" stepKey="resetTaxDisplayToDefault"/> |
| 78 | + <magentoCLI command="config:set {{DisplayProductPricesInCatalog.path}} {{DisplayProductPricesInCatalog.value}}" stepKey="resetTaxDisplayToDefault"/> |
79 | 79 | <deleteData createDataKey="createSpriteYogaStrapsBundle" stepKey="deleteBundleProduct"/> |
80 | 80 | <deleteData createDataKey="createYogaStrap6Foot" stepKey="deleteYogaStrap6Foot"/> |
81 | 81 | <deleteData createDataKey="createYogaStrap8Foot" stepKey="deleteYogaStrap8Foot"/> |
|
89 | 89 | <argument name="page_id" value="{{CmsHomePageContent.page_id}}"/> |
90 | 90 | </actionGroup> |
91 | 91 | <conditionalClick selector="{{CmsNewPagePageActionsSection.contentSectionName}}" dependentSelector="{{CmsNewPagePageActionsSection.showHideEditor}}" visible="false" stepKey="expandContentSectionIfNotVisibleToReset"/> |
92 | | - <waitForPageLoad time="30" stepKey="waitForPageLoadContentSectionToReset"/> |
| 92 | + <waitForPageLoad stepKey="waitForPageLoadContentSectionToReset"/> |
93 | 93 | <actionGroup ref="ClickEditWithPageBuilderButtonActionGroup" stepKey="clickEditWithPageBuilderButtonActionGroupToReset"/> |
94 | 94 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStageToReset"> |
95 | 95 | <argument name="contentType" value="PageBuilderHtmlContentType"/> |
|
99 | 99 | </actionGroup> |
100 | 100 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsBlockAfterReset"/> |
101 | 101 | <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreenAfterReset"/> |
102 | | - <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPageAfterReset"/> |
103 | 102 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
104 | 103 | </after> |
105 | 104 | <!-- Step 2:- Create "Recently Viewed Widget" and add it to the home page --> |
106 | 105 | <actionGroup ref="AdminOpenCmsPageActionGroup" stepKey="navigateToEditHomePage"> |
107 | 106 | <argument name="page_id" value="{{CmsHomePageContent.page_id}}"/> |
108 | 107 | </actionGroup> |
109 | 108 | <conditionalClick selector="{{CmsNewPagePageActionsSection.contentSectionName}}" dependentSelector="{{CmsNewPagePageActionsSection.showHideEditor}}" visible="false" stepKey="expandContentSectionIfNotVisible"/> |
110 | | - <waitForPageLoad time="30" stepKey="waitForPageLoadContentSection"/> |
| 109 | + <waitForPageLoad stepKey="waitForPageLoadContentSection"/> |
111 | 110 | <actionGroup ref="ClickEditWithPageBuilderButtonActionGroup" stepKey="clickEditWithPageBuilderButtonActionGroup"/> |
112 | 111 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage"> |
113 | 112 | <argument name="contentType" value="PageBuilderHtmlContentType"/> |
|
121 | 120 | </actionGroup> |
122 | 121 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsBlock"/> |
123 | 122 | <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
124 | | - <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
| 123 | + <actionGroup ref="AdminSaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
125 | 124 | <!-- Step 3:- Create "Catalog Product List Widget" and add it to the home page (for comparison), limit the visible SKU to created bundle product sku --> |
126 | 125 | <conditionalClick selector="{{CmsNewPagePageActionsSection.contentSectionName}}" dependentSelector="{{CmsNewPagePageActionsSection.showHideEditor}}" visible="false" stepKey="expandContentSectionIfNotVisibleAgain"/> |
127 | | - <waitForPageLoad time="30" stepKey="waitForPageLoadContentSectionAgain"/> |
| 126 | + <waitForPageLoad stepKey="waitForPageLoadContentSectionAgain"/> |
128 | 127 | <actionGroup ref="ClickEditWithPageBuilderButtonActionGroup" stepKey="clickEditWithPageBuilderButtonActionGroupAgain"/> |
129 | 128 | <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStageAgain"> |
130 | 129 | <argument name="contentType" value="PageBuilderHtmlContentType"/> |
131 | 130 | </actionGroup> |
132 | 131 | <actionGroup ref="AdminInsertWidgetToCmsPageContentActionGroup" stepKey="insertCatalogProductsListWidget"> |
133 | | - <argument name="widgetType" value="Catalog Products List"/> |
| 132 | + <argument name="widgetType" value="{{CatalogProductsListWidget.type}}"/> |
134 | 133 | </actionGroup> |
135 | 134 | <actionGroup ref="AdminFillCatalogProductsListWidgetSkuActionGroup" stepKey="addSkuCondition"> |
136 | 135 | <argument name="sku" value="$$createSpriteYogaStrapsBundle.sku$$"/> |
137 | 136 | </actionGroup> |
138 | 137 | <actionGroup ref="AdminClickInsertWidgetActionGroup" stepKey="insertWidget"/> |
139 | 138 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettingsBlockAgain"/> |
140 | 139 | <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreenAgain"/> |
141 | | - <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPageAgain"/> |
142 | 140 | <actionGroup ref="AdminSaveAndContinueEditCmsPageActionGroup" stepKey="saveHomePageAfterCatalogProductListWidgetCreation"/> |
143 | 141 | <!-- Step 4:- Search for "Set of Sprite Yoga Straps" product (the sample grouped product) and add to the cart --> |
144 | 142 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
|
148 | 146 | <argument name="tags" value="full_page"/> |
149 | 147 | </actionGroup> |
150 | 148 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomepage"/> |
151 | | - <waitForElementVisible selector="{{StorefrontWidgetsSection.widgetProductsGrid}}" stepKey="waitForProductListWidget"/> |
152 | | - <click selector="{{StorefrontWidgetsSection.widgetProductsGrid}} .product-item-link[title*='Set of Sprite Yoga Straps']" stepKey="clickOnBundleProductFromWidget"/> |
| 149 | + <waitForElementVisible selector="{{StorefrontCategoryProductSection.widgetProduct($$createSpriteYogaStrapsBundle.name$$)}}" stepKey="waitForProductListWidget"/> |
| 150 | + <click selector="{{StorefrontCategoryProductSection.widgetProduct($$createSpriteYogaStrapsBundle.name$$)}}" stepKey="clickOnBundleProductFromWidget"/> |
153 | 151 | <actionGroup ref="StorefrontAddBundleProductFromProductToCartActionGroup" stepKey="addBundleProductToCart"> |
154 | | - <argument name="productName" value="Set of Sprite Yoga Straps"/> |
| 152 | + <argument name="productName" value="$$createSpriteYogaStrapsBundle.name$$"/> |
155 | 153 | </actionGroup> |
156 | 154 | <!-- Step 4 Result:- Verify the price of the "Set of Sprite Yoga Straps" both including and excluding price should be displayed correctly.(including : 15.16 and excluding 14) --> |
157 | 155 | <waitForElementVisible selector="{{StorefrontProductInfoMainSection.includingTaxPrice}}" stepKey="waitForIncludingTaxPrice"/> |
|
0 commit comments