7
7
-->
8
8
<tests xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
9
9
xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/testSchema.xsd" >
10
- <test name =" CmsPageMassActionTest " >
10
+ <test name =" AdminCmsPageMassActionTest " >
11
11
<annotations >
12
12
<features value =" Cms" />
13
13
<title value =" Create two CMS Pages and perform mass disable action" />
27
27
<actionGroup ref =" logout" stepKey =" logout" />
28
28
</after >
29
29
<!-- Go to Grid page-->
30
- <amOnPage url = " {{CmsPagesPage.url}} " stepKey =" navigateToCMSPagesGrid " />
30
+ <actionGroup ref = " AdminNavigateToCMSPageGrid " stepKey =" navigateToCMSPageGrid " />
31
31
<!-- Select pages in Grid-->
32
- <checkOption selector =" {{CmsPagesPageActionsSection.pageRowCheckboxByIdentifier($$firstCMSPage.identifier$$)}}" stepKey =" selectFirstPage" />
33
- <checkOption selector =" {{CmsPagesPageActionsSection.pageRowCheckboxByIdentifier($$secondCMSPage.identifier$$)}}" stepKey =" selectSecondPage" />
32
+ <actionGroup ref =" AdminSelectCMSPageInGrid" stepKey =" selectFirstCMSPage" >
33
+ <argument name =" identifier" value =" $$firstCMSPage.identifier$$" />
34
+ </actionGroup >
35
+ <actionGroup ref =" AdminSelectCMSPageInGrid" stepKey =" selectSecondCMSPage" >
36
+ <argument name =" identifier" value =" $$secondCMSPage.identifier$$" />
37
+ </actionGroup >
34
38
<!-- Disable Pages-->
35
- <click selector =" {{CmsPagesPageActionsSection.massActionsButton}}" stepKey =" clickMassActionDropdown" />
36
- <click selector =" {{CmsPagesPageActionsSection.massActionsOption('Disable')}}" stepKey =" clickDisableAction" />
37
- <waitForPageLoad stepKey =" waitForPageToReload" />
39
+ <actionGroup ref =" AdminCMSPageMassActionDisable" stepKey =" disablePages" />
38
40
<!-- Verify pages in Grid-->
39
- <actionGroup ref =" AssertCMSPageInGrid" stepKey =" VerifyFirstPageinGrid " >
40
- <argument name =" CMSPage " value =" $$firstCMSPage$$" />
41
+ <actionGroup ref =" AssertCMSPageInGrid" stepKey =" verifyFirstPageinGrid " >
42
+ <argument name =" identifier " value =" $$firstCMSPage.identifier$$ $$" />
41
43
</actionGroup >
42
- <actionGroup ref =" AssertCMSPageInGrid" stepKey =" VerifySecondPageinGrid " >
43
- <argument name =" CMSPage " value =" $$secondCMSPage$$" />
44
+ <actionGroup ref =" AssertCMSPageInGrid" stepKey =" verifySecondPageinGrid " >
45
+ <argument name =" identifier " value =" $$secondCMSPage.identifier$$ $$" />
44
46
</actionGroup >
45
47
<!-- Verify Pages are disabled on Frontend-->
46
- <amOnPage url = " {{StorefrontHomePage.url}}/{{$$firstCMSPage.identifier$$}} " stepKey =" amOnFirstPageOnFrontend " / >
47
- < waitForPageLoad stepKey = " waitForFirstPageLoadOnFrontend " />
48
- <see userInput = " Whoops, our bad... " stepKey = " seePageErrorForFirstPage " / >
49
- <amOnPage url = " {{StorefrontHomePage.url}}/{{$$secondCMSPage.identifier$$}} " stepKey =" amOnSecondPageOnFrontend " / >
50
- < waitForPageLoad stepKey = " waitForSecondPageLoadOnFrontend " />
51
- <see userInput = " Whoops, our bad... " stepKey = " seePageErrorForSecondPage " / >
48
+ <actionGroup ref = " AssertCMSPageNotFoundOnFront " stepKey =" checkFirstPageNotFoundOnFront " >
49
+ < argument name = " identifier " value = " $$firstCMSPage.identifier$$ " />
50
+ </ actionGroup >
51
+ <actionGroup ref = " AssertCMSPageNotFoundOnFront " stepKey =" checkSecondPageNotFoundOnFront " >
52
+ < argument name = " identifier " value = " $$secondCMSPage.identifier$$ " />
53
+ </ actionGroup >
52
54
</test >
53
55
</tests >
0 commit comments