File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
app/code/Magento/PageBuilder/Test/Mftf
ActionGroup/WYSIWYGActionGroup
Test/AdminPageBuilderTextTest Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 9
9
xsi:noNamespaceSchemaLocation=" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
10
10
<actionGroup name =" AddPageLinkWidgetToTinyMCEWithAnchorAndTitleActionGroup" extends =" addPageLinkWidgetToTinyMCE" >
11
11
<arguments >
12
- <argument name =" page" defaultValue =" " type =" string" />
13
12
<argument name =" anchor" defaultValue =" " type =" string" />
14
13
<argument name =" title" defaultValue =" " type =" string" />
15
14
</arguments >
16
15
<comment userInput =" Insert anchor and title text" stepKey =" commentAddAnchorAndTitleText" after =" waitForLoadingMaskToDisappear2" />
17
- <fillField selector =" {{WidgetSection.InputAnchorCustomText}}" userInput =" {{anchor}}" stepKey =" insertTextToDisplay" after =" commentAddAnchorAndTitleText" />
18
- <fillField selector =" {{WidgetSection.InputAnchorCustomTitle}}" userInput =" {{title}}" stepKey =" insertTitle" after =" insertTextToDisplay" />
16
+ <waitForElementVisible selector =" {{WidgetSection.InputAnchorCustomText}}" stepKey =" waitForInputAnchorCustomText" after =" commentAddAnchorAndTitleText" />
17
+ <fillField selector =" {{WidgetSection.InputAnchorCustomText}}" userInput =" {{anchor}}" stepKey =" insertTextToDisplay" after =" waitForInputAnchorCustomText" />
18
+ <waitForElementVisible selector =" {{WidgetSection.InputAnchorCustomTitle}}" stepKey =" waitForInputAnchorCustomTitle" after =" insertTextToDisplay" />
19
+ <fillField selector =" {{WidgetSection.InputAnchorCustomTitle}}" userInput =" {{title}}" stepKey =" insertTitle" after =" waitForInputAnchorCustomTitle" />
19
20
<waitForElementVisible selector =" {{TinyMCESection.InsertWidgetIcon}}" stepKey =" waitForInsertWidget1" after =" waitForInsertWidgetModalToClose" />
20
21
<click selector =" {{TinyMCESection.InsertWidgetIcon}}" stepKey =" clickAddWidgetBtn" />
21
22
</actionGroup >
Original file line number Diff line number Diff line change 41
41
</actionGroup >
42
42
<clickWithLeftButton x =" 10" y =" 10" selector =" {{TextOnStage.tinymce('1')}}" stepKey =" focusOnTextEditorArea" />
43
43
<actionGroup ref =" AddPageLinkWidgetToTinyMCEWithAnchorAndTitleActionGroup" stepKey =" addPageLinkWidgetToTinyMCE" >
44
- <argument name =" widget" value =" TinyMCEWidgetCMSPageLinkWithAnchorAndTitle" />
45
44
<argument name =" page" value =" $$createCMSPageB.identifier$$" />
46
45
<argument name =" anchor" value =" {{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.anchorText}}" />
47
46
<argument name =" title" value =" {{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.title}}" />
76
75
<argument name =" widget" value =" TinyMCEWidgetCMSPageLink.editPanelValue" />
77
76
</actionGroup >
78
77
<!-- Grab a value from the link-->
78
+ <waitForElementVisible selector =" {{WidgetSection.InputAnchorCustomText}}" stepKey =" waitForInputAnchorCustomText" />
79
79
<grabValueFrom selector =" {{WidgetSection.InputAnchorCustomText}}" stepKey =" grabAnchorText" />
80
+ <waitForElementVisible selector =" {{WidgetSection.InputAnchorCustomTitle}}" stepKey =" waitForInputAnchorCustomTitle" />
80
81
<grabValueFrom selector =" {{WidgetSection.InputAnchorCustomTitle}}" stepKey =" grabTitleText" />
81
82
<assertEquals stepKey =" assertAnchorTextCMSWidgetLink" message =" pass" >
82
83
<expectedResult type =" string" >{{TinyMCEWidgetCMSPageLinkWithAnchorAndTitle.anchorText}}</expectedResult >
You can’t perform that action at this time.
0 commit comments