|
635 | 635 | <argument name="content" value="{{VideoOnStorefront.wrapperCSS}}"/>
|
636 | 636 | </actionGroup>
|
637 | 637 | </test>
|
| 638 | + <test name="VideoHeightRendersCorrectlyBasedOnMaxWidthAndAspectRatio" extends="RowWithBordersAndPaddingEqualToMinHeight"> |
| 639 | + <annotations> |
| 640 | + <features value="PageBuilder"/> |
| 641 | + <stories value="Video"/> |
| 642 | + <title value="Video height is based on max width and aspect ratio"/> |
| 643 | + <description value="A user can see Video height is based on max width and aspect ratio"/> |
| 644 | + <severity value="AVERAGE"/> |
| 645 | + <useCaseId value="MC-15812"/> |
| 646 | + <testCaseId value="MC-18149"/> |
| 647 | + <group value="pagebuilder"/> |
| 648 | + <group value="pagebuilder-video"/> |
| 649 | + </annotations> |
| 650 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 651 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 652 | + </actionGroup> |
| 653 | + <actionGroup ref="expandPageBuilderPanelMenuSection" after="enterPageTitle" stepKey="expandMenuSection"> |
| 654 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 655 | + </actionGroup> |
| 656 | + <actionGroup ref="dragContentTypeToStage" after="commentConfigureContentType" stepKey="dragContentTypeToStage"> |
| 657 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 658 | + </actionGroup> |
| 659 | + <actionGroup ref="openPageBuilderEditPanelByIndex" stepKey="openEditPanel"> |
| 660 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 661 | + </actionGroup> |
| 662 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" after="openEditPanel" stepKey="enterVideoUrlProperty"> |
| 663 | + <argument name="property" value="PageBuilderVideoUrl_YouTube"/> |
| 664 | + </actionGroup> |
| 665 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" after="enterVideoUrlProperty" stepKey="enterWidthProperty"> |
| 666 | + <argument name="property" value="PageBuilderVideoWidth_500"/> |
| 667 | + </actionGroup> |
| 668 | + <remove keyForRemoval="enterMinHeightProperty"/> |
| 669 | + <remove keyForRemoval="enterBorder"/> |
| 670 | + <remove keyForRemoval="enterBorderColor"/> |
| 671 | + <remove keyForRemoval="enterBorderWidth"/> |
| 672 | + <remove keyForRemoval="enterPadding"/> |
| 673 | + <comment userInput="Validate height on stage before save" stepKey="commentValidateHeightOnStageBeforeSave"/> |
| 674 | + <actionGroup ref="validateContentTypeHeightEqualToMinHeight" stepKey="validateContentTypeHeightBeforeSave"> |
| 675 | + <argument name="content" value="{{VideoOnStage.mainCSS}}"/> |
| 676 | + <argument name="height" value="PageBuilderVideoContainerHeight"/> |
| 677 | + <argument name="pixelBuffer" value="2"/> |
| 678 | + </actionGroup> |
| 679 | + <actionGroup ref="validateContentTypeHeightEqualToMinHeight" stepKey="validateContentTypeHeightAfterSave"> |
| 680 | + <argument name="content" value="{{VideoOnStage.mainCSS}}"/> |
| 681 | + <argument name="height" value="PageBuilderVideoContainerHeight"/> |
| 682 | + <argument name="pixelBuffer" value="2"/> |
| 683 | + </actionGroup> |
| 684 | + <actionGroup ref="navigateToStoreFront" stepKey="navigateToStoreFront"> |
| 685 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 686 | + </actionGroup> |
| 687 | + <comment userInput="Validate height on storefront" stepKey="commentValidateHeightOnStorefront"/> |
| 688 | + <actionGroup ref="validateContentTypeHeightEqualToMinHeight" stepKey="validateContentTypeHeightStorefront"> |
| 689 | + <argument name="content" value="{{VideoOnStorefront.mainCSS}}"/> |
| 690 | + <argument name="height" value="PageBuilderVideoContainerHeight"/> |
| 691 | + <argument name="pixelBuffer" value="2"/> |
| 692 | + </actionGroup> |
| 693 | + </test> |
638 | 694 | <test name="VideoValidateURL">
|
639 | 695 | <annotations>
|
640 | 696 | <features value="PageBuilder"/>
|
|
0 commit comments