Skip to content

Commit 9f7b26e

Browse files
committed
MC-975: Editing Text content block on Pagebuilder does not indicate Textarea is required
- update existing test to check no required fields
1 parent 7f7a7af commit 9f7b26e

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderTextTest.xml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,16 +1575,17 @@
15751575
<comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
15761576
<waitForElementNotVisible selector="{{TextOnStorefront.base('1')}}" stepKey="waitForTextStorefront"/>
15771577
</test>
1578-
<test name="TextRequiredAttributes">
1578+
<test name="TextHasNoRequired">
15791579
<annotations>
15801580
<features value="PageBuilder"/>
15811581
<stories value="Text"/>
1582-
<title value="Validate Required Attributes"/>
1583-
<description value="Validate that required attributes are required for text."/>
1582+
<title value="Text has no required fields in edit form"/>
1583+
<description value="Check there are no required fields in text edit form"/>
15841584
<severity value="AVERAGE"/>
15851585
<useCaseId value="MAGETWO-90461"/>
15861586
<testCaseId value="MAGETWO-91077"/>
15871587
<group value="pagebuilder"/>
1588+
<group value="pagebuilder-me"/>
15881589
<group value="pagebuilder-text"/>
15891590
</annotations>
15901591
<before>
@@ -1604,20 +1605,16 @@
16041605
<actionGroup ref="openPageBuilderEditPanel" stepKey="openEditMenuOnStage">
16051606
<argument name="contentType" value="PageBuilderTextContentType"/>
16061607
</actionGroup>
1607-
<!-- Validate Cannot Save Edit Panel -->
1608-
<comment userInput="Validate Cannot Save Edit Panel" stepKey="commentValidateCannotSave"/>
1609-
<waitForPageLoad stepKey="waitForPageLoad"/>
1610-
<waitForElementVisible time="5" selector="{{EditPanelForm.editFormSave}}" stepKey="waitForColumnSaveButton" />
1611-
<click selector="{{EditPanelForm.editFormSave}}" stepKey="clickSaveColumn"/>
1612-
<waitForPageLoad stepKey="waitForPageLoad2"/>
1613-
<seeElement selector="{{TextOnConfiguration.panelFieldValidationErrorMessage(PageBuilderTextContentTypeEmpty.section, PageBuilderTextContentTypeEmpty.errorMessage)}}" stepKey="seeElementErrorMessage"/>
1614-
<!-- Validate User Can Recover From Error -->
1615-
<comment userInput="Validate User Can Recover From Error" stepKey="commentValidateRecovery"/>
1616-
<actionGroup ref="addTextToTinyMCE" stepKey="enterText">
1617-
<argument name="property" value="PageBuilderTextProperty"/>
1608+
<!-- Clear Fields -->
1609+
<comment userInput="Clear Fields" stepKey="commentClearFields"/>
1610+
<actionGroup ref="addTextToTinyMCE" stepKey="clearText">
1611+
<argument name="property" value="PageBuilderTextContentTypeEmpty"/>
16181612
</actionGroup>
1613+
<!-- Validate No Required Fields -->
1614+
<comment userInput="Validate No Required Fields" stepKey="commentValidateNoRequired"/>
1615+
<dontSeeElementInDOM selector="{{EditPanelForm.editFormAllRequiredFields}}" stepKey="dontSeeRequiredClassInEditForm"/>
16191616
<actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
1620-
<waitForElementVisible selector="{{TextOnStage.text('1', PageBuilderTextProperty.value)}}" stepKey="waitForTextStage"/>
1617+
<waitForElementVisible time="10" selector="{{CmsNewPagePageActionsSection.saveAndContinueEdit}}" stepKey="waitForCmsPageSaveButton"/>
16211618
</test>
16221619
<test name="TextDisabledWYSIWYGAddImage">
16231620
<annotations>

0 commit comments

Comments
 (0)