Skip to content

Commit 1c3c04b

Browse files
author
Sumesh P
committedFeb 25, 2025
AC-12719: [PageBuilder] MFTF Test Failure - videos playing assertion fails
Update video playing assertion fix
1 parent d956812 commit 1c3c04b

File tree

3 files changed

+23
-29
lines changed

3 files changed

+23
-29
lines changed
 

‎app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderRowBackgroundAttributeTest/RowValidateVideoBackgroundLazyLoadDisabled.xml

+6-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* ADOBE CONFIDENTIAL
5-
*
6-
* Copyright 2020 Adobe
7-
* All Rights Reserved.
8-
*
9-
* NOTICE: All information contained herein is, and remains
10-
* the property of Adobe and its suppliers, if any. The intellectual
11-
* and technical concepts contained herein are proprietary to Adobe
12-
* and its suppliers and are protected by all applicable intellectual
13-
* property laws, including trade secret and copyright laws.
14-
* Dissemination of this information or reproduction of this material
15-
* is strictly forbidden unless prior written permission is obtained
16-
* from Adobe.
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
176
*/
187
-->
198
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -41,7 +30,10 @@
4130
<argument name="section" value="RowOnStage"/>
4231
<argument name="index" value="4"/>
4332
</actionGroup>
44-
<comment userInput="BIC Change for PB Video" stepKey="validateVideoNotPlayingStage1"/>
33+
<actionGroup ref="validateVideoBackgroundLoaded" stepKey="validateVideoNotPlayingStage1">
34+
<argument name="section" value="RowOnStage"/>
35+
<argument name="index" value="4"/>
36+
</actionGroup>
4537
<actionGroup ref="validateVideoBackgroundLoaded" stepKey="validateVideoPlayingStage2">
4638
<argument name="section" value="RowOnStage"/>
4739
<argument name="index" value="4"/>

‎app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderRowBackgroundAttributeTest/RowValidateVideoBackgroundLazyLoadEnabled.xml

+6-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* ADOBE CONFIDENTIAL
5-
*
6-
* Copyright 2020 Adobe
7-
* All Rights Reserved.
8-
*
9-
* NOTICE: All information contained herein is, and remains
10-
* the property of Adobe and its suppliers, if any. The intellectual
11-
* and technical concepts contained herein are proprietary to Adobe
12-
* and its suppliers and are protected by all applicable intellectual
13-
* property laws, including trade secret and copyright laws.
14-
* Dissemination of this information or reproduction of this material
15-
* is strictly forbidden unless prior written permission is obtained
16-
* from Adobe.
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
176
*/
187
-->
198
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -42,7 +31,10 @@
4231
<argument name="section" value="RowOnStage"/>
4332
<argument name="index" value="4"/>
4433
</actionGroup>
45-
<comment userInput="BIC Change for PB Video" stepKey="validateVideoNotPlayingStage1"/>
34+
<actionGroup ref="validateVideoBackgroundNotLoaded" stepKey="validateVideoNotPlayingStage1">
35+
<argument name="section" value="RowOnStage"/>
36+
<argument name="index" value="4"/>
37+
</actionGroup>
4638
<actionGroup ref="validateVideoBackgroundLoaded" stepKey="validateVideoPlayingStage2">
4739
<argument name="section" value="RowOnStage"/>
4840
<argument name="index" value="4"/>

‎app/code/Magento/PageBuilder/Test/Mftf/Test/AdminPageBuilderRowBackgroundAttributeTest/RowValidateVideoBackgroundPlayOnlyWhenVisibleEnabled.xml

+11-1
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,18 @@
104104
<actionGroup ref="exitPageBuilderFullScreen" stepKey="exitPageBuilderFullScreen"/>
105105
<actionGroup ref="SaveAndContinueEditCmsPageActionGroup" stepKey="saveAndContinueEditCmsPage"/>
106106
<actionGroup ref="switchToPageBuilderStage" stepKey="switchToPageBuilderStage2"/>
107+
<actionGroup ref="ScrollToActionGroup" stepKey="scrollRow4Stage">
108+
<argument name="cssSelector" value="{{RowOnStage.affordanceCSS}}"/>
109+
<argument name="index" value="4"/>
110+
<argument name="verticalOffset" value="-100"/>
111+
</actionGroup>
112+
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
107113
<!-- Stage: Validate Video is not Playing -->
108-
<comment userInput="BIC Change for PB Video" stepKey="validateVideoNotPlayingStage1"/>
114+
<actionGroup ref="validateVideoBackgroundLoadedButNotPlaying" stepKey="validateVideoNotPlayingStage1">
115+
<argument name="section" value="RowOnStage"/>
116+
<argument name="videoUrl" value="PageBuilderVideoBackgroundUrl_YouTube_NonEmbedded"/>
117+
<argument name="index" value="4"/>
118+
</actionGroup>
109119
<actionGroup ref="ScrollToActionGroup" stepKey="scrollRow4Stage">
110120
<argument name="cssSelector" value="{{RowOnStage.affordanceCSS}}"/>
111121
<argument name="index" value="4"/>

0 commit comments

Comments
 (0)
Please sign in to comment.