|
393 | 393 | <click selector="{{BannerOnFrontend.linkUrl(PageBuilderBannerLinkUrlProperty.value)}}" stepKey="clickLinkUrl"/>
|
394 | 394 | <amOnPage url="{{PageBuilderBannerLinkUrlProperty.value}}" stepKey="amOnLinkPage"/>
|
395 | 395 | </test>
|
396 |
| - <test name="BannerRemoveBannerFromStage"> |
| 396 | + <test name="BannerDelete"> |
397 | 397 | <annotations>
|
398 | 398 | <features value="PageBuilder"/>
|
399 | 399 | <stories value="Banner"/>
|
400 |
| - <title value="Remove banner content type from stage"/> |
401 |
| - <description value="A user should be able to remove banner content type from a row."/> |
| 400 | + <title value="Delete Banner"/> |
| 401 | + <description value="A user should be able to delete a banner content type. Verify on Stage and Storefront."/> |
402 | 402 | <severity value="CRITICAL"/>
|
403 |
| - <useCaseId value="MAGETWO-83928"/> |
404 |
| - <testCaseId value="MAGETWO-84919"/> |
| 403 | + <useCaseId value="MC-3239"/> |
| 404 | + <testCaseId value="MC-3367"/> |
405 | 405 | <group value="pagebuilder"/>
|
406 | 406 | <group value="pagebuilder-banner"/>
|
407 | 407 | <group value="pagebuilder-bannerCommon"/>
|
|
414 | 414 | <after>
|
415 | 415 | <actionGroup ref="logout" stepKey="logout"/>
|
416 | 416 | </after>
|
| 417 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 418 | + <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 419 | + </actionGroup> |
| 420 | + <!-- Add Banner and Save Page --> |
| 421 | + <comment userInput="Add Banner and Save Page" stepKey="commentAddBanner"/> |
417 | 422 | <actionGroup ref="expandPageBuilderPanelGroup" stepKey="expandPageBuilderPanelGroup">
|
418 | 423 | <argument name="group" value="PageBuilderBannerContentType"/>
|
419 | 424 | </actionGroup>
|
420 | 425 | <actionGroup ref="dragContentTypeToStage" stepKey="dragContentTypeToStage">
|
421 | 426 | <argument name="contentType" value="PageBuilderBannerContentType"/>
|
422 | 427 | </actionGroup>
|
423 |
| - <actionGroup ref="removeEmptyContentTypeFromStage" stepKey="removeBanner"> |
| 428 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage"/> |
| 429 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 430 | + <!-- Delete Banner --> |
| 431 | + <comment userInput="Delete Banner" stepKey="commentDeleteBanner"/> |
| 432 | + <actionGroup ref="removeContentTypeFromStage" stepKey="removeBanner"> |
| 433 | + <argument name="contentType" value="PageBuilderBannerContentType"/> |
| 434 | + </actionGroup> |
| 435 | + <!-- Validate Stage --> |
| 436 | + <comment userInput="Validate Stage" stepKey="commentValidateStage"/> |
| 437 | + <dontSeeElementInDOM selector="{{PageBuilderStage.contentTypeInStageByIndex(PageBuilderBannerContentType.role, '1')}}" stepKey="dontSeeContentTypeInStage"/> |
| 438 | + <!-- Save Page --> |
| 439 | + <comment userInput="Save Page" stepKey="commentSavePage"/> |
| 440 | + <actionGroup ref="saveAndContinueEditCmsPage" stepKey="saveAndContinueEditCmsPage2"/> |
| 441 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/> |
| 442 | + <!-- Validate Stage After Save --> |
| 443 | + <comment userInput="Validate Stage After Save" stepKey="commentValidateStage2"/> |
| 444 | + <dontSeeElementInDOM selector="{{PageBuilderStage.contentTypeInStageByIndex(PageBuilderBannerContentType.role, '1')}}" stepKey="dontSeeContentTypeInStage2"/> |
| 445 | + <!-- Validate Storefront --> |
| 446 | + <comment userInput="Validate Storefront" stepKey="commentValidateStorefront"/> |
| 447 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
424 | 448 | <argument name="contentType" value="PageBuilderBannerContentType"/>
|
425 | 449 | </actionGroup>
|
426 |
| - <dontSeeElement selector="{{PageBuilderStage.contentTypeInStage(PageBuilderBannerContentType.role)}}" stepKey="dontSeeContentTypeInStage"/> |
| 450 | + <dontSeeElementInDOM selector="{{BannerOnFrontend.base('1')}}" stepKey="dontSeeContentTypeInStorefront"/> |
427 | 451 | </test>
|
428 | 452 | <test name="BannerHasNoRequired">
|
429 | 453 | <annotations>
|
|
0 commit comments