Skip to content

Commit 636f008

Browse files
#429: User can add content to the Stage directly
- fix static tests
1 parent 43df4bc commit 636f008

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/AdminActionGroup/SwitchToPageBuilderStageActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
<waitForPageLoad stepKey="waitForFullScreenAnimation"/>
2525
<!-- Wait for the first row to be added into the stage for it to be "ready" -->
2626
<waitForElementNotVisible selector="{{PageBuilderStage.stageLoading}}" stepKey="waitForStageLoadingGraphicNotVisible"/>
27-
<waitForElementVisible time="30" selector="{{PageBuilderStage.rootContainer(rowIndex)}}" stepKey="waitForPageBuilderRootContainer"/>
27+
<waitForElementVisible time="30" selector="{{PageBuilderStage.rootContainer(rowIndex)}}" stepKey="waitForPageBuilderRow"/>
2828
</actionGroup>
2929
</actionGroups>

app/code/Magento/PageBuilder/Test/Mftf/ActionGroup/StageActionGroup/VerifyEmptyStageActionGroup.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<argument name="pageBuilderArea" defaultValue="" type="string"/>
1717
</arguments>
1818
<waitForPageLoad stepKey="waitForStageLoad"/>
19-
<waitForElementVisible selector="{{PageBuilderStage.rootContainer(rowIndex)}}" stepKey="waitForEmptyStage"/>
20-
<seeElement selector="{{PageBuilderStage.rootContainer(rowIndex)}}" stepKey="seeEmptyStage"/>
21-
<see userInput="Drag Row, Columns, Tabs, Block, Dynamic Block or HTML Code here" selector="{{PageBuilderStage.rootContainerPlaceholder(rowIndex)}}" stepKey="seeEmptyStagePlaceholderMessage"/>
22-
<seeNumberOfElements userInput="0" selector="{{pageBuilderArea}}{{RowOnStage.allRows}}" stepKey="seeZeroRow"/>
19+
<waitForElementVisible selector="{{PageBuilderStage.rootContainer(rowIndex)}}" stepKey="waitForEmptyRow"/>
20+
<seeElement selector="{{PageBuilderStage.rootContainer(rowIndex)}}" stepKey="seeEmptyRow"/>
21+
<see userInput="Drag Row, Columns, Tabs, Block, Dynamic Block or HTML Code here" selector="{{PageBuilderStage.rootContainerPlaceholder(rowIndex)}}" stepKey="seeEmptyRowPlaceholderMessage"/>
22+
<seeNumberOfElements userInput="0" selector="{{pageBuilderArea}}{{RowOnStage.allRows}}" stepKey="seeOnlyOneRow"/>
2323
</actionGroup>
2424
</actionGroups>

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/stage-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function buildEmpty(stage: Stage, initialValue: string) {
262262
if (rootContentType) {
263263
rootContentType.addChild(html);
264264
} else {
265-
rootContainer.addChild(html)
265+
rootContainer.addChild(html);
266266
}
267267
});
268268
}

0 commit comments

Comments
 (0)