|
8 | 8 |
|
9 | 9 | <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
|
| 11 | + <actionGroup name="navigateToCMSPage"> |
| 12 | + <!-- This goes in CE repo --> |
| 13 | + <arguments> |
| 14 | + <argument name="CMSPage"/> |
| 15 | + </arguments> |
| 16 | + <amOnPage url="{{CmsPagesPage.url}}" stepKey="navigateToCMSPagesGrid"/> |
| 17 | + <waitForPageLoad stepKey="waitForPageLoad1"/> |
| 18 | + <conditionalClick selector="{{CmsPagesPageActionsSection.clearAllButton}}" dependentSelector="{{CmsPagesPageActionsSection.activeFilters}}" visible="true" stepKey="clickToResetFilter"/> |
| 19 | + <waitForPageLoad stepKey="waitForGridLoad"/> |
| 20 | + <conditionalClick selector="//div[contains(@data-role, 'grid-wrapper')]/table/thead/tr/th/span[contains(text(), 'ID')]" dependentSelector="//span[contains(text(), 'ID')]/parent::th[not(contains(@class, '_descend'))]/parent::tr/parent::thead/parent::table/parent::div[contains(@data-role, 'grid-wrapper')]" visible="true" stepKey="clickToAttemptSortByIdDescending"/> |
| 21 | + <waitForPageLoad stepKey="waitForFirstIdSortDescendingToFinish"/> |
| 22 | + <!-- Conditional Click again in case it goes from default state to ascending on first click --> |
| 23 | + <conditionalClick selector="//div[contains(@data-role, 'grid-wrapper')]/table/thead/tr/th/span[contains(text(), 'ID')]" dependentSelector="//span[contains(text(), 'ID')]/parent::th[not(contains(@class, '_descend'))]/parent::tr/parent::thead/parent::table/parent::div[contains(@data-role, 'grid-wrapper')]" visible="true" stepKey="secondClickToAttemptSortByIdDescending"/> |
| 24 | + <waitForPageLoad stepKey="waitForSecondIdSortDescendingToFinish"/> |
| 25 | + <click selector="{{CmsPagesPageActionsSection.select(CMSPage.identifier)}}" stepKey="clickSelectCreatedCMSPage"/> |
| 26 | + <click selector="{{CmsPagesPageActionsSection.edit(CMSPage.identifier)}}" stepKey="navigateToCreatedCMSPage"/> |
| 27 | + <waitForPageLoad stepKey="waitForPageLoad2"/> |
| 28 | + <seeElement selector="{{CmsNewPagePageContentSection.header}}" stepKey="seeContentSectionHeaderForPage"/> |
| 29 | + </actionGroup> |
11 | 30 | <actionGroup name="navigateToAPageWithPageBuilder">
|
12 | 31 | <waitForPageLoad stepKey="waitForDashboardPageLoad"/>
|
13 | 32 | <amOnPage url="{{CmsPagesPage.url}}/new" stepKey="amOnPageBuilderPage"/>
|
|
0 commit comments