|
745 | 745 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
746 | 746 | </actionGroup>
|
747 | 747 | <clickWithLeftButton x="10" y="10" selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnTextEditorArea"/>
|
748 |
| - <actionGroup ref="addPageLinkWidgetToTinyMCEInline" stepKey="addPageLinkWidgetToTinyMCE"> |
749 |
| - <argument name="widget" value="TinyMCEWidgetCMSPageLink"/> |
| 748 | + <actionGroup ref="AddPageLinkWidgetToTinyMCEWithAnchorAndTitleActionGroup" stepKey="addPageLinkWidgetToTinyMCE"> |
750 | 749 | <argument name="page" value="$$createCMSPageB.identifier$$"/>
|
| 750 | + <argument name="anchor" value="{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.anchorText}}"/> |
| 751 | + <argument name="title" value="{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.title}}"/> |
751 | 752 | </actionGroup>
|
752 | 753 | <waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForWidgetStage1"/>
|
753 | 754 | <!--Verify widget edit page-->
|
|
778 | 779 | <actionGroup ref="doubleClickWidgetTinyMCE" stepKey="doubleClickWidget">
|
779 | 780 | <argument name="widget" value="TinyMCEWidgetCMSPageLink.editPanelValue"/>
|
780 | 781 | </actionGroup>
|
| 782 | + <!-- Grab a value from the link--> |
| 783 | + <waitForElementVisible selector="{{WidgetSection.InputAnchorCustomText}}" stepKey="waitForInputAnchorCustomText"/> |
| 784 | + <grabValueFrom selector="{{WidgetSection.InputAnchorCustomText}}" stepKey="grabAnchorText"/> |
| 785 | + <waitForElementVisible selector="{{WidgetSection.InputAnchorCustomTitle}}" stepKey="waitForInputAnchorCustomTitle"/> |
| 786 | + <grabValueFrom selector="{{WidgetSection.InputAnchorCustomTitle}}" stepKey="grabTitleText"/> |
| 787 | + <assertEquals stepKey="assertAnchorTextCMSWidgetLink" message="pass"> |
| 788 | + <expectedResult type="string">{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.anchorText}}</expectedResult> |
| 789 | + <actualResult type="string">{$grabAnchorText}</actualResult> |
| 790 | + </assertEquals> |
| 791 | + <assertEquals stepKey="assertTitleCMSWidgetLink" message="pass"> |
| 792 | + <expectedResult type="string">{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.title}}</expectedResult> |
| 793 | + <actualResult type="string">{$grabTitleText}</actualResult> |
| 794 | + </assertEquals> |
781 | 795 | <actionGroup ref="closeWidgetPanelTinyMCE" stepKey="closeWidgetPanelTinyMCE"/>
|
782 | 796 | <!-- Validate Storefront -->
|
783 | 797 | <comment userInput="Verify Widget Content Type on storefront" stepKey="commentVerifyWidgetOnStorefront"/>
|
|
0 commit comments