9
9
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
10
10
<test name =" AdminCmsPageMassActionTest" >
11
11
<annotations >
12
- <features value =" Cms " />
12
+ <features value =" CmsPage " />
13
13
<title value =" Create two CMS Pages and perform mass disable action" />
14
14
<description value =" Admin should be able to perform mass actions to CMS pages" />
15
+ <stories value =" Admin Grid Mass Action" />
16
+ <testCaseId value =" MC-14659" />
17
+ <severity value =" CRITICAL" />
15
18
<group value =" backend" />
16
- <group value =" cMSContent " />
19
+ <group value =" CMSContent " />
17
20
<group value =" mtf_migrated" />
18
21
</annotations >
19
22
<before >
26
29
<deleteData createDataKey =" secondCMSPage" stepKey =" deleteSecondCMSPage" />
27
30
<actionGroup ref =" logout" stepKey =" logout" />
28
31
</after >
32
+
29
33
<!-- Go to Grid page-->
30
34
<actionGroup ref =" AdminOpenCMSPagesGridActionGroup" stepKey =" navigateToCMSPageGrid" />
35
+ <actionGroup ref =" AdminGridFilterResetActionGroup" stepKey =" clearPossibleGridFilters" />
36
+
31
37
<!-- Select pages in Grid-->
32
38
<actionGroup ref =" AdminSelectCMSPageInGridActionGroup" stepKey =" selectFirstCMSPage" >
33
39
<argument name =" identifier" value =" $$firstCMSPage.identifier$$" />
34
40
</actionGroup >
35
41
<actionGroup ref =" AdminSelectCMSPageInGridActionGroup" stepKey =" selectSecondCMSPage" >
36
42
<argument name =" identifier" value =" $$secondCMSPage.identifier$$" />
37
43
</actionGroup >
44
+
38
45
<!-- Disable Pages-->
39
- <actionGroup ref =" AdminCMSPageMassActionDisableActionGroup" stepKey =" disablePages" />
46
+ <actionGroup ref =" AdminCMSPageMassActionSelectActionGroup" stepKey =" disablePages" >
47
+ <argument name =" action" value =" Disable" />
48
+ </actionGroup >
49
+
50
+ <actionGroup ref =" AssertMessageInAdminPanelActionGroup" stepKey =" assertSuccessMessage" >
51
+ <argument name =" message" value =" A total of 2 record(s) have been disabled." />
52
+ </actionGroup >
53
+
40
54
<!-- Verify pages in Grid-->
41
- <actionGroup ref =" AdminOpenCMSPagesGridActionGroup" stepKey =" openCMSPagesGridActionGroup" />
42
- <actionGroup ref =" clearFiltersAdminDataGrid" stepKey =" clearGridFilters" />
43
- <actionGroup ref =" SortByIdDescendingActionGroup" stepKey =" sortGridByIdDescending" />
44
- <actionGroup ref =" AdminSelectCMSPageFromGridActionGroup" stepKey =" verifyFirstPageInGrid" >
45
- <argument name =" identifier" value =" $$firstCMSPage.identifier$$" />
55
+ <actionGroup ref =" AdminGridFilterResetActionGroup" stepKey =" clearGridFilters" />
56
+ <actionGroup ref =" AdminGridFilterFillInputFieldActionGroup" stepKey =" filterGridByFirstCmsPageIdentifier" >
57
+ <argument name =" filterInputName" value =" identifier" />
58
+ <argument name =" filterValue" value =" $$firstCMSPage.identifier$$" />
46
59
</actionGroup >
47
- <actionGroup ref =" AdminSelectCMSPageFromGridActionGroup" stepKey =" verifySecondPageInGrid" >
48
- <argument name =" identifier" value =" $$secondCMSPage.identifier$$" />
60
+ <actionGroup ref =" AdminGridFilterApplyActionGroup" stepKey =" applyFirstGridFilters" />
61
+ <actionGroup ref =" AssertCMSPageInGridActionGroup" stepKey =" assertFirstCmsPageInGrid" >
62
+ <argument name =" cmsPage" value =" $$firstCMSPage$$" />
63
+ </actionGroup >
64
+
65
+ <actionGroup ref =" AdminGridFilterFillInputFieldActionGroup" stepKey =" filterGridBySecondCmsPageIdentifier" >
66
+ <argument name =" filterInputName" value =" identifier" />
67
+ <argument name =" filterValue" value =" $$secondCMSPage.identifier$$" />
68
+ </actionGroup >
69
+ <actionGroup ref =" AdminGridFilterApplyActionGroup" stepKey =" applySecondGridFilters" />
70
+ <actionGroup ref =" AssertCMSPageInGridActionGroup" stepKey =" assertSecondCmsPageInGrid" >
71
+ <argument name =" cmsPage" value =" $$secondCMSPage$$" />
49
72
</actionGroup >
50
- <!-- Verify first page is disabled on Frontend-->
73
+ <actionGroup ref =" AdminGridFilterResetActionGroup" stepKey =" clearGridFiltersToIsolateTest" />
74
+
75
+ <!-- Verify pages are disabled on Storefront-->
51
76
<actionGroup ref =" StorefrontGoToCMSPageActionGroup" stepKey =" goToFirstCMSPageOnStorefront" >
52
77
<argument name =" identifier" value =" $$firstCMSPage.identifier$$" />
53
78
</actionGroup >
54
79
<actionGroup ref =" AssertCMSPageNotFoundOnStorefrontActionGroup" stepKey =" seeNotFoundErrorForFirstPage" />
55
- <!-- Verify second page is disabled on Frontend-->
56
80
<actionGroup ref =" StorefrontGoToCMSPageActionGroup" stepKey =" goToSecondCMSPageOnStorefront" >
57
81
<argument name =" identifier" value =" $$secondCMSPage.identifier$$" />
58
82
</actionGroup >
59
83
<actionGroup ref =" AssertCMSPageNotFoundOnStorefrontActionGroup" stepKey =" seeNotFoundErrorForSecondPage" />
60
84
</test >
61
- </tests >
85
+ </tests >
0 commit comments