|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 10 | + <test name="VideoValidateAutoplayPlaysinlineMp4Enabled"> |
| 11 | + <annotations> |
| 12 | + <features value="PageBuilder"/> |
| 13 | + <stories value="Video"/> |
| 14 | + <title value="Validate Video Playsinline Autoplay Attribute"/> |
| 15 | + <description value="Validate that setting the autoplay attribute in the General form for Video will also add the playsinline attribute to the video tag in order for autoplay to work on mobile Safari browser"/> |
| 16 | + <severity value="AVERAGE"/> |
| 17 | + <useCaseId value="ACP2E-1654"/> |
| 18 | + <testCaseId value="AC-8149"/> |
| 19 | + <group value="pagebuilder"/> |
| 20 | + <group value="pagebuilder-video"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <createData entity="_emptyCmsPage" stepKey="createCMSPage"/> |
| 24 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 25 | + </before> |
| 26 | + <after> |
| 27 | + <deleteData createDataKey="createCMSPage" stepKey="deleteCMSPage"/> |
| 28 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 29 | + </after> |
| 30 | + |
| 31 | + <!-- Add an autoplay video to the CMS page --> |
| 32 | + <actionGroup ref="NavigateToCreatedCMSPageActionGroup" stepKey="navigateToCreatedCMSPage"> |
| 33 | + <argument name="CMSPage" value="$$createCMSPage$$"/> |
| 34 | + </actionGroup> |
| 35 | + <actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage"/> |
| 36 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragRowToRootContainer"> |
| 37 | + <argument name="contentType" value="PageBuilderRowContentType"/> |
| 38 | + <argument name="containerTargetType" value="PageBuilderRootContainerContentType"/> |
| 39 | + </actionGroup> |
| 40 | + <actionGroup ref="addPageBuilderPageTitle" stepKey="enterPageTitle"> |
| 41 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 42 | + </actionGroup> |
| 43 | + <actionGroup ref="expandPageBuilderPanelMenuSection" stepKey="expandPageBuilderPanelMenuSection"> |
| 44 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 45 | + </actionGroup> |
| 46 | + <actionGroup ref="dragContentTypeToStage" stepKey="dragVideoIntoStage"> |
| 47 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 48 | + </actionGroup> |
| 49 | + <actionGroup ref="openPageBuilderEditPanel" stepKey="openEditAfterDrop"> |
| 50 | + <argument name="contentType" value="PageBuilderVideoContentType"/> |
| 51 | + </actionGroup> |
| 52 | + <actionGroup ref="fillSlideOutPanelFieldGeneral" stepKey="enterVideoUrlProperty"> |
| 53 | + <argument name="property" value="PageBuilderVideoUrl_Mp4_URL"/> |
| 54 | + </actionGroup> |
| 55 | + <actionGroup ref="conditionalClickSlideOutPanelFieldGeneral" stepKey="setAutoplayEnabled"> |
| 56 | + <argument name="property" value="PageBuilderVideoAutoplay_Enabled"/> |
| 57 | + </actionGroup> |
| 58 | + <actionGroup ref="saveEditPanelSettings" stepKey="saveEditPanelSettings"/> |
| 59 | + <actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/> |
| 60 | + <actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/> |
| 61 | + |
| 62 | + <!-- Validate that the added autoplay video will have playsinline tag at the storefront --> |
| 63 | + <actionGroup ref="NavigateToStorefrontForCreatedPageActionGroup" stepKey="navigateToCMSPageStorefront"> |
| 64 | + <argument name="page" value="$$createCMSPage.identifier$$"/> |
| 65 | + </actionGroup> |
| 66 | + <actionGroup ref="ValidateFullScreenVideoHasPlaysinlineAttributeActionGroup" stepKey="validateVideoPlaysinlineAttribute"/> |
| 67 | + </test> |
| 68 | +</tests> |
0 commit comments