File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed
app/code/Magento/PageBuilder/Test/Mftf Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 19
19
<click selector =" {{BlockOnGrid.selectBtn(block.identifier)}}" stepKey =" clickSelectBtn" />
20
20
<click selector =" {{BlockOnGrid.addSelectedBtn}}" stepKey =" clickAddSelected" />
21
21
</actionGroup >
22
+ <actionGroup name =" verifyBlockOnStage" >
23
+ <arguments >
24
+ <argument name =" contentType" />
25
+ <argument name =" block" />
26
+ </arguments >
27
+ <moveMouseOver selector =" {{PageBuilderStage.contentTypeInStage(contentType.role)}}" x =" 10" y =" 0" stepKey =" onMouseOverContentTypeStage" />
28
+ <see selector =" {{PageBuilderContentTypeOptionsMenu.contentTypeOptionsMenu(contentType.role)}}" userInput =" {{block.title}}" stepKey =" seeOptionMenuTitle" />
29
+ <see userInput =" {{block.content}}" stepKey =" seeBlockContentOnStage" />
30
+ </actionGroup >
22
31
</actionGroups >
Original file line number Diff line number Diff line change 78
78
<actionGroup ref =" searchBlockInGrid" stepKey =" searchBlockInGrid" >
79
79
<argument name =" block" value =" $$createPreReqBlock$$" />
80
80
</actionGroup >
81
- <!-- <seeElement selector="{{BlockOnStage.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitle"/>-->
81
+ <waitForLoadingMaskToDisappear stepKey =" waitForLoadingMaskToDisappear" />
82
+ <seeElement selector =" {{BlockOnStage.title('$$createPreReqBlock.title$$')}}" stepKey =" seeBlockTitleOnForm" />
82
83
<actionGroup ref =" saveEditPanelSettings" stepKey =" saveEditPanelSettings" />
84
+ <actionGroup ref =" verifyBlockOnStage" stepKey =" verifyBlockOnStage" >
85
+ <argument name =" contentType" value =" PageBuilderBlockContentType" />
86
+ <argument name =" block" value =" $$createPreReqBlock$$" />
87
+ </actionGroup >
83
88
<actionGroup ref =" saveAndContinueEditCmsPage" stepKey =" saveAndContinueEditCmsPage" />
84
89
<actionGroup ref =" switchToPageBuilderStage" stepKey =" switchToPageBuilderStage" />
85
- <waitForElementVisible selector =" {{BlockOnStage.hr('1')}}" stepKey =" waitForHrElementVisible" />
86
- <waitForElementVisible selector =" {{BlockOnStage.identifier('1', PageBuilderBlockIdentifierProperty.value)}}" stepKey =" waitForIdentifier" />
90
+ <actionGroup ref =" verifyBlockOnStage" stepKey =" verifyBlockOnStageAfterSave" >
91
+ <argument name =" contentType" value =" PageBuilderBlockContentType" />
92
+ <argument name =" block" value =" $$createPreReqBlock$$" />
93
+ </actionGroup >
87
94
<actionGroup ref =" navigateToStoreFront" stepKey =" navigateToStoreFront" >
88
95
<argument name =" contentType" value =" PageBuilderBlockContentType" />
89
96
</actionGroup >
90
- <seeElement selector = " {{BlockOnStorefront.hr('1')}} " stepKey =" seeBlockContentFrontend " />
97
+ <see userInput = " $$createPreReqBlock.content$$ " stepKey =" seeBlockContentOnStage " />
91
98
</test >
92
99
<test name =" BlockDelete" >
93
100
<annotations >
You can’t perform that action at this time.
0 commit comments