|
32 | 32 | <deleteData createDataKey="createCmsPage" stepKey="deleteCmsPage"/>
|
33 | 33 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
|
34 | 34 | </after>
|
| 35 | + <!-- Add Text and Heading --> |
35 | 36 | <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection">
|
36 | 37 | <argument name="contentType" value="PageBuilderHeadingContentType"/>
|
37 | 38 | </actionGroup>
|
|
41 | 42 | <actionGroup ref="dragContentTypeToStage" stepKey="dragHeadingIntoStage">
|
42 | 43 | <argument name="contentType" value="PageBuilderHeadingContentType"/>
|
43 | 44 | </actionGroup>
|
| 45 | + <!-- Enter Heading Content --> |
44 | 46 | <actionGroup ref="enterHeadingOnStage" stepKey="enterHeadingOnStage">
|
45 | 47 | <argument name="headingText" value="PageBuilderHeadingTextProperty"/>
|
46 | 48 | </actionGroup>
|
|
50 | 52 | <actionGroup ref="clickInsideLiveEditHeading" stepKey="clickInsideLiveEditHeading">
|
51 | 53 | <argument name="index" value="1"/>
|
52 | 54 | </actionGroup>
|
| 55 | + <!-- Select all Heading content and copy, paste into Text --> |
53 | 56 | <executeJS function="document.execCommand('selectall', null, false);" stepKey="selectAllText"/>
|
54 | 57 | <waitForPageLoad stepKey="waitForTextSelect"/>
|
55 |
| - <pressKey selector="{{HeadingOnStage.baseByTagName(PageBuilderHeadingTypeProperty_H2.value, '1')}}" |
56 |
| - parameterArray="[\Facebook\WebDriver\WebDriverKeys::CONTROL, \Facebook\WebDriver\WebDriverKeys::INSERT]" |
57 |
| - stepKey="copyAllText"/> |
| 58 | + <pressKey selector="{{HeadingOnStage.baseByTagName(PageBuilderHeadingTypeProperty_H2.value, '1')}}" parameterArray="[\Facebook\WebDriver\WebDriverKeys::CONTROL, \Facebook\WebDriver\WebDriverKeys::INSERT]" stepKey="copyAllText"/> |
58 | 59 | <waitForPageLoad stepKey="waitForTextCopy"/>
|
59 | 60 | <actionGroup ref="clickOutsideLiveEditHeading" stepKey="clickOutsideLiveEditHeadingAfterCopy">
|
60 | 61 | <argument name="index" value="1"/>
|
61 | 62 | </actionGroup>
|
62 | 63 | <clickWithLeftButton x="10" y="10" selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnTextEditorArea"/>
|
63 |
| - <pressKey selector="{{TextOnStage.tinymce('1')}}" |
64 |
| - parameterArray="[\Facebook\WebDriver\WebDriverKeys::SHIFT, \Facebook\WebDriver\WebDriverKeys::INSERT]" |
65 |
| - stepKey="pasteAllText"/> |
| 64 | + <pressKey selector="{{TextOnStage.tinymce('1')}}" parameterArray="[\Facebook\WebDriver\WebDriverKeys::SHIFT, \Facebook\WebDriver\WebDriverKeys::INSERT]" stepKey="pasteAllText"/> |
66 | 65 | <waitForPageLoad stepKey="waitForTextPaste"/>
|
| 66 | + <!-- Save page and verify copy, paste --> |
67 | 67 | <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
|
68 | 68 | <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="SaveAndContinueEdit"/>
|
69 | 69 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStageAfterSave"/>
|
70 |
| - <waitForElementVisible selector="{{HeadingOnStage.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextProperty.value, '1')}}" |
71 |
| - stepKey="waitForHeadingVisible"/> |
72 |
| - <waitForElementVisible selector="{{TextOnStage.text('1', PageBuilderHeadingTextProperty.value)}}" |
73 |
| - stepKey="waitForTextVisible"/> |
| 70 | + <waitForElementVisible selector="{{HeadingOnStage.headingText(PageBuilderHeadingTypeProperty_H2.value, PageBuilderHeadingTextProperty.value, '1')}}" stepKey="waitForHeadingVisible"/> |
| 71 | + <waitForElementVisible selector="{{TextOnStage.text('1', PageBuilderHeadingTextProperty.value)}}" stepKey="waitForTextVisible"/> |
74 | 72 | </test>
|
75 | 73 | </tests>
|
0 commit comments