|
8 | 8 |
|
9 | 9 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 |
| - <test name="InitialStatusBlock"> |
| 11 | + <test name="BlockValidateEmptyState"> |
12 | 12 | <annotations>
|
13 | 13 | <features value="PageBuilder"/>
|
14 | 14 | <stories value="Block"/>
|
15 | 15 | <title value="Block - Initial Status"/>
|
16 |
| - <description value="Verify that empty block render correctly on stage and storefront"/> |
| 16 | + <description value="Verify that empty block renders correctly on stage and storefront"/> |
17 | 17 | <severity value="CRITICAL"/>
|
18 | 18 | <testCaseId value="MC-2278"/>
|
19 | 19 | <useCaseId value="MC-1420"/>
|
|
37 | 37 | <actionGroup ref="dragContentTypeToStage" stepKey="dragBlockIntoStage">
|
38 | 38 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
39 | 39 | </actionGroup>
|
40 |
| - <waitForElementVisible selector="{{BlockOnStage.status('1', 'Empty Block')}}" stepKey="seeEmptyBlockPlaceHolder1"/> |
| 40 | + <seeElement selector="{{BlockOnStage.status('1', 'Empty Block')}}" stepKey="seeEmptyBlockPlaceHolder1"/> |
41 | 41 | <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/>
|
42 | 42 | <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/>
|
43 |
| - <waitForElementVisible selector="{{BlockOnStage.status('1', 'Empty Block')}}" stepKey="seeEmptyBlockPlaceHolder2"/> |
| 43 | + <seeElement selector="{{BlockOnStage.status('1', 'Empty Block')}}" stepKey="seeEmptyBlockPlaceHolder2"/> |
44 | 44 | <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/>
|
45 | 45 | <amOnPage url="$$createCMSPage.identifier$$" stepKey="amOnPageTestPage"/>
|
46 | 46 | <waitForPageLoad stepKey="waitForPageLoad"/>
|
|
364 | 364 | <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid">
|
365 | 365 | <argument name="block" value="$$createPreReqBlock$$"/>
|
366 | 366 | </actionGroup>
|
367 |
| - <waitForElementVisible selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="waitToSeeBlockTitle"/> |
368 |
| - <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm1"/> |
369 |
| - |
370 | 367 | <!-- Update Values -->
|
371 | 368 | <comment userInput="Update Values" stepKey="commentUpdateValues"/>
|
372 | 369 | <actionGroup ref="chooseVisualSelectOption" stepKey="enterAlignment">
|
|
440 | 437 | <argument name="contentTypeIndex" value="2"/>
|
441 | 438 | </actionGroup>
|
442 | 439 | <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm2"/>
|
443 |
| - <actionGroup ref="chooseVisualSelectOption" stepKey="selectAlignmentCenter"> |
| 440 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateAlignment"> |
444 | 441 | <argument name="property" value="PageBuilderAdvancedAlignmentPropertyCenter"/>
|
445 | 442 | </actionGroup>
|
446 | 443 | <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="seeBorder1">
|
|
491 | 488 | <argument name="contentTypeIndex" value="2"/>
|
492 | 489 | </actionGroup>
|
493 | 490 | <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm3"/>
|
494 |
| - <actionGroup ref="chooseVisualSelectOption" stepKey="selectAlignmentCenter2"> |
| 491 | + <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="validateAlignment2"> |
495 | 492 | <argument name="property" value="PageBuilderAdvancedAlignmentPropertyCenter"/>
|
496 | 493 | </actionGroup>
|
497 | 494 | <actionGroup ref="seeOptionIsSelectedSlideOutProperty" stepKey="seeBorder2">
|
|
516 | 513 | <argument name="property" value="PageBuilderPaddingPropertyUnique"/>
|
517 | 514 | </actionGroup>
|
518 | 515 | <actionGroup ref="closeEditPanelSettings" stepKey="closeEditPanel2"/>
|
519 |
| - |
520 | 516 | <!--Validate Storefront-->
|
521 | 517 | <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront">
|
522 | 518 | <argument name="contentType" value="PageBuilderBlockContentType"/>
|
|
545 | 541 | <argument name="padding" value="PageBuilderPaddingPropertyUnique"/>
|
546 | 542 | <argument name="index" value="2"/>
|
547 | 543 | </actionGroup>
|
548 |
| - <actionGroup ref="verifyBlockOnStorefront" stepKey="verifyBlockOnStorefront1"> |
549 |
| - <argument name="block" value="$$createPreReqBlock$$"/> |
550 |
| - <argument name="index" value="1"/> |
551 |
| - </actionGroup> |
552 |
| - <actionGroup ref="verifyBlockOnStorefront" stepKey="verifyBlockOnStorefront2"> |
553 |
| - <argument name="block" value="$$createPreReqBlock$$"/> |
554 |
| - <argument name="index" value="2"/> |
555 |
| - </actionGroup> |
| 544 | + <waitForPageLoad stepKey="waitForAnimation1" time="30"/> |
| 545 | + <see selector="{{BlockOnStorefront.textContent(1, $$createPreReqBlock.content$$)}}" stepKey="seeBlockContentOnCmsStorefront1"/> |
| 546 | + <waitForPageLoad stepKey="waitForAnimation2" time="30"/> |
| 547 | + <see selector="{{BlockOnStorefront.textContent(2, $$createPreReqBlock.content$$)}}" stepKey="seeBlockContentOnCmsStorefront2"/> |
556 | 548 | </test>
|
557 | 549 | <test name="BlockDelete">
|
558 | 550 | <annotations>
|
|
1895 | 1887 | <actionGroup ref="searchBlockInGrid" stepKey="searchBlockInGrid">
|
1896 | 1888 | <argument name="block" value="$$createPreReqBlock$$"/>
|
1897 | 1889 | </actionGroup>
|
1898 |
| - <waitForElementVisible selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="waitToSeeBlockTitle"/> |
1899 |
| - <seeElement selector="{{BlockOnForm.title('$$createPreReqBlock.title$$')}}" stepKey="seeBlockTitleOnForm"/> |
1900 | 1890 | <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/>
|
1901 | 1891 | <!-- Validate Stage -->
|
1902 | 1892 | <comment userInput="Validate Stage" stepKey="commentValidateStage"/>
|
|
0 commit comments