Skip to content

Commit fe3b66e

Browse files
committed
MC-5773: Add Missing P0-P1 MFTF Tests For PageBuilder On Schedule Update & Staging Dashboard
- Fixing staging tests - Adding/editing supporting actiongroups, elements, data
1 parent 7bd1497 commit fe3b66e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/AdminActionGroup.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,25 @@
88

99
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
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>
1130
<actionGroup name="navigateToAPageWithPageBuilder">
1231
<waitForPageLoad stepKey="waitForDashboardPageLoad"/>
1332
<amOnPage url="{{CmsPagesPage.url}}/new" stepKey="amOnPageBuilderPage"/>

0 commit comments

Comments
 (0)