|
11 | 11 | <test name="AdminVerifyMostViewProductsAndDisabledChartInDashBoardTest">
|
12 | 12 | <annotations>
|
13 | 13 | <features value="Sales"/>
|
14 |
| - <stories value="Most Viewed Products Widget and Disabled Charts On Dashboard"/> |
15 |
| - <title value="Validating Most Viewed Products Widget and Disabled Charts Behaviour On Admin Dashboard Page"/> |
16 |
| - <description value="Admin Verifies Most View Products as well as Disables Chart Behaviour On Admin Dashboard Page"/> |
| 14 | + <stories value="Most viewed products widget and disabled charts on dashboard"/> |
| 15 | + <title value="Validating most Viewed products widget and disabled charts behaviour on admin dashboard"/> |
| 16 | + <description value="Verify most view products as well as disables charts behaviour on admin dashboard page"/> |
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | <testCaseId value="AC-11007"/>
|
19 | 19 | <group value="sales"/>
|
20 | 20 | </annotations>
|
21 | 21 | <before>
|
22 |
| - <!-- Precondition Step 1. Create 5 Simple Products --> |
| 22 | + <!-- Precondition Step 1: Create 5 Simple Products --> |
23 | 23 | <createData entity="_defaultProduct" stepKey="createProduct">
|
24 | 24 | <field key="price">100.00</field>
|
25 | 25 | </createData>
|
|
35 | 35 | <createData entity="SimpleProduct3" stepKey="createThirdProduct">
|
36 | 36 | <field key="price">500.00</field>
|
37 | 37 | </createData>
|
38 |
| - <!-- Precondition Step 2. Create Customer --> |
| 38 | + <!-- Precondition Step 2: Create Customer --> |
39 | 39 | <createData entity="Simple_US_CA_Customer" stepKey="createCustomer"/>
|
40 |
| - <!-- Precondition Step 3. Enable View Report In Configuration --> |
41 |
| - <magentoCLI command="config:set reports/options/enabled 1" stepKey="setReportAsEnable"/> |
| 40 | + <!-- Precondition Step 3: Enable View Report In Configuration --> |
| 41 | + <actionGroup ref="AdminEnableViewProductReportActionGroup" stepKey="enableViewProductReport"/> |
42 | 42 | </before>
|
43 | 43 | <after>
|
44 | 44 | <!-- Delete Customer and Product -->
|
|
49 | 49 | <deleteData createDataKey="createFirstProduct" stepKey="deleteFirstProduct"/>
|
50 | 50 | <deleteData createDataKey="createSecondProduct" stepKey="deleteSecondProduct"/>
|
51 | 51 | <!-- Disable View Report -->
|
52 |
| - <magentoCLI command="config:set reports/options/enabled 0" stepKey="disableReportModule"/> |
| 52 | + <actionGroup ref="AdminDisableViewProductReportActionGroup" stepKey="disableViewProductReport"/> |
53 | 53 | <!-- Logout from Storefront -->
|
54 | 54 | <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/>
|
55 | 55 | <!-- Logout from Admin -->
|
|
109 | 109 | <argument name="productPrice" value="$$createThirdProduct.price$$"/>
|
110 | 110 | <argument name="productViews" value="1"/>
|
111 | 111 | </actionGroup>
|
112 |
| - <!--Step 7: Disable charts on dashboard by default --> |
| 112 | + <!--Step 7: Verify charts are disabled on the dashboard by default --> |
113 | 113 | <waitForElementVisible selector="{{AdminDashboardSection.dashboardChart(AdminMenuDashboard.message)}}" stepKey="waitForChartsToBeVisibleAsDisabled"/>
|
114 | 114 | </test>
|
115 | 115 | </tests>
|
0 commit comments