Skip to content

Commit 1b1bbb6

Browse files
committed
AC-12719: [PageBuilder] MFTF Test Failure - videos playing assertion fails
Add custom actionGroup to assert video not playing MC-31332
1 parent b8c5af3 commit 1b1bbb6

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* ADOBE CONFIDENTIAL
5+
*
6+
* Copyright 2025 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.
17+
*/
18+
-->
19+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
21+
<actionGroup name="ValidateVideoBackgroundLoadedButNotPlayingAlternateActionGroup" extends="validateVideoBackgroundPlaying">
22+
<annotations>
23+
<description>Validates that the video in the video background is loaded but not playing.</description>
24+
</annotations>
25+
<assertStringNotContainsString stepKey="assertVideoPlaying">
26+
<expectedResult type="string">visibility: hidden(</expectedResult>
27+
<actualResult type="variable">$videoStyle</actualResult>
28+
</assertStringNotContainsString>
29+
</actionGroup>
30+
</actionGroups>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
</actionGroup>
112112
<scrollToTopOfPage stepKey="scrollToTopOfPage"/>
113113
<!-- Stage: Validate Video is not Playing -->
114-
<actionGroup ref="validateVideoBackgroundLoadedButNotPlaying" stepKey="validateVideoNotPlayingStage1">
114+
<actionGroup ref="ValidateVideoBackgroundLoadedButNotPlayingAlternateActionGroup" stepKey="validateVideoNotPlayingStage1">
115115
<argument name="section" value="RowOnStage"/>
116116
<argument name="videoUrl" value="PageBuilderVideoBackgroundUrl_YouTube_NonEmbedded"/>
117117
<argument name="index" value="4"/>

0 commit comments

Comments
 (0)