Skip to content

Commit 33af6dc

Browse files
committed
ACQE-8211: Validate admin dashboard for most viewed products and Disabled Charts
- Updated Actiongroup by adding oath and value from data file
1 parent e364c1f commit 33af6dc

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

app/code/Magento/Backend/Test/Mftf/ActionGroup/AdminDisableViewProductReportActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
<annotations>
1313
<description>Admin disables most view products report in configuration</description>
1414
</annotations>
15-
<magentoCLI command="config:set reports/options/enabled 0" stepKey="setReportAsDisable"/>
15+
<magentoCLI command="config:set {{AdminDisableReportConfigData.path}} {{AdminDisableReportConfigData.value}}" stepKey="setReportAsDisable"/>
1616
</actionGroup>
1717
</actionGroups>

app/code/Magento/Backend/Test/Mftf/ActionGroup/AdminEnableViewProductReportActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
<annotations>
1313
<description>Admin enables most view products report in configuration</description>
1414
</annotations>
15-
<magentoCLI command="config:set reports/options/enabled 1" stepKey="setReportAsEnable"/>
15+
<magentoCLI command="config:set {{AdminEnableReportConfigData.path}} {{AdminEnableReportConfigData.value}}" stepKey="setReportAsEnable"/>
1616
</actionGroup>
1717
</actionGroups>

app/code/Magento/Backend/Test/Mftf/Data/AdminWebConfigData.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,12 @@
1616
<data key="path">web/seo/use_rewrites</data>
1717
<data key="value">0</data>
1818
</entity>
19+
<entity name="AdminEnableReportConfigData">
20+
<data key="path">reports/options/enabled</data>
21+
<data key="value">1</data>
22+
</entity>
23+
<entity name="AdminDisableReportConfigData">
24+
<data key="path">reports/options/enabled</data>
25+
<data key="value">0</data>
26+
</entity>
1927
</entities>

0 commit comments

Comments
 (0)