|
40 | 40 | <argument name="contentType" value="PageBuilderTextContentType"/>
|
41 | 41 | </actionGroup>
|
42 | 42 | <clickWithLeftButton x="10" y="10" selector="{{TextOnStage.tinymce('1')}}" stepKey="focusOnTextEditorArea"/>
|
43 |
| - <actionGroup ref="addPageLinkWidgetToTinyMCEInline" stepKey="addPageLinkWidgetToTinyMCE"> |
44 |
| - <argument name="widget" value="TinyMCEWidgetCMSPageLink"/> |
| 43 | + <actionGroup ref="AddPageLinkWidgetToTinyMCEWithAnchorAndTitleActionGroup" stepKey="addPageLinkWidgetToTinyMCE"> |
| 44 | + <argument name="widget" value="TinyMCEWidgetCMSPageLinkWithAnchorAndTitle"/> |
45 | 45 | <argument name="page" value="$$createCMSPageB.identifier$$"/>
|
| 46 | + <argument name="anchor" value="{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.anchorText}}"/> |
| 47 | + <argument name="title" value="{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.title}}"/> |
46 | 48 | </actionGroup>
|
47 | 49 | <waitForElementVisible selector="{{TextOnStage.text('1', TinyMCEWidgetCMSPageLink.editPanelValue)}}" stepKey="waitForWidgetStage1"/>
|
48 | 50 | <!--Verify widget edit page-->
|
|
73 | 75 | <actionGroup ref="doubleClickWidgetTinyMCE" stepKey="doubleClickWidget">
|
74 | 76 | <argument name="widget" value="TinyMCEWidgetCMSPageLink.editPanelValue"/>
|
75 | 77 | </actionGroup>
|
| 78 | + <!-- Grab a value from the link--> |
| 79 | + <grabValueFrom selector="{{WidgetSection.InputAnchorCustomText}}" stepKey="grabAnchorText"/> |
| 80 | + <grabValueFrom selector="{{WidgetSection.InputAnchorCustomTitle}}" stepKey="grabTitleText"/> |
| 81 | + <assertEquals stepKey="assertAnchorTextCMSWidgetLink" message="pass"> |
| 82 | + <expectedResult type="string">{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.anchorText}}</expectedResult> |
| 83 | + <actualResult type="string">{$grabAnchorText}</actualResult> |
| 84 | + </assertEquals> |
| 85 | + <assertEquals stepKey="assertTitleCMSWidgetLink" message="pass"> |
| 86 | + <expectedResult type="string">{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.title}}</expectedResult> |
| 87 | + <actualResult type="string">{$grabTitleText}</actualResult> |
| 88 | + </assertEquals> |
76 | 89 | <actionGroup ref="closeWidgetPanelTinyMCE" stepKey="closeWidgetPanelTinyMCE"/>
|
77 | 90 | <!-- Validate Storefront -->
|
78 | 91 | <comment userInput="Verify Widget Content Type on storefront" stepKey="commentVerifyWidgetOnStorefront"/>
|
|
0 commit comments