Skip to content

Commit 1b21872

Browse files
committed
MC-39759: Navigation arrow buttons not visible after video starts on product image
1 parent 3d03c6f commit 1b21872

9 files changed

+44
-160
lines changed

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/AssertCloseButtonHiddenProductVideoActionGroup.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/AssertNextButtonHiddenProductVideoActionGroup.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/AssertPrevButtonHiddenProductVideoActionGroup.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<!-- Assert the navigation arrows on Storefront Product page -->
12+
<actionGroup name="AssertProductVideoNavigationArrowsActionGroup">
13+
<annotations>
14+
<description>Validates the navigation arrows on the Storefront Product page.</description>
15+
</annotations>
16+
<arguments>
17+
<argument name="videoType" type="string" defaultValue="vimeo"/>
18+
</arguments>
19+
20+
<dontSeeElement selector="{{StorefrontProductMediaSection.imagePrevButton}}" stepKey="dontSeePrevButton"/>
21+
<moveMouseOver selector="{{StorefrontProductMediaSection.mainImageForJsActions}}" stepKey="hoverOverImage"/>
22+
<seeElement selector="{{StorefrontProductMediaSection.imageNextButton}}" stepKey="seeNextButton"/>
23+
<click selector="{{StorefrontProductMediaSection.imageNextButton}}" stepKey="clickNextButton"/>
24+
<seeElement selector="{{StorefrontProductInfoMainSection.productVideo(videoType)}}" stepKey="seeProductVideoDataType"/>
25+
26+
<dontSeeElement selector="{{StorefrontProductInfoMainSection.clickCloseVideo}}" stepKey="dontSeeCloseVideo"/>
27+
28+
<click selector="{{StorefrontProductInfoMainSection.clickPlayVideo}}" stepKey="clickToPlayVideo"/>
29+
<wait stepKey="waitFiveSecondsToPlayVideo" time="5"/>
30+
31+
<dontSeeElement selector="{{StorefrontProductMediaSection.imagePrevButton}}" stepKey="dontSeePrevButtonSecond"/>
32+
<dontSeeElement selector="{{StorefrontProductMediaSection.imageNextButton}}" stepKey="dontSeeNextButton"/>
33+
34+
<seeElement selector="{{StorefrontProductInfoMainSection.clickCloseVideo}}" stepKey="seeCloseVideo"/>
35+
<click selector="{{StorefrontProductInfoMainSection.clickCloseVideo}}" stepKey="clickToCloseVideo"/>
36+
<wait stepKey="waitTwoSecondsToCloseVideo" time="2"/>
37+
38+
<moveMouseOver selector="{{StorefrontProductMediaSection.mainImageForJsActions}}" stepKey="hoverOverImageSecond"/>
39+
<seeElement selector="{{StorefrontProductMediaSection.imagePrevButton}}" stepKey="seePrevButton"/>
40+
<click selector="{{StorefrontProductMediaSection.imagePrevButton}}" stepKey="clickPrevButton"/>
41+
</actionGroup>
42+
</actionGroups>

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/ClickCloseButtonProductVideoActionGroup.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/ClickNextButtonProductVideoActionGroup.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/ClickPlayButtonProductVideoActionGroup.xml

Lines changed: 0 additions & 20 deletions
This file was deleted.

app/code/Magento/ProductVideo/Test/Mftf/ActionGroup/ClickPrevButtonProductVideoActionGroup.xml

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/code/Magento/ProductVideo/Test/Mftf/Test/VimeoVideoControlButtonsOnProductPageTest.xml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,9 @@
5050
<argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/>
5151
</actionGroup>
5252

53-
<!-- Click next button -->
54-
<actionGroup ref="AssertPrevButtonHiddenProductVideoActionGroup" stepKey="assertPrevButtonIsHidden"/>
55-
<actionGroup ref="ClickNextButtonProductVideoActionGroup" stepKey="clickNextNavigationButton"/>
56-
57-
<!-- Assert product video present in the storefront product page -->
58-
<actionGroup ref="AssertProductVideoStorefrontProductPageActionGroup" stepKey="assertProductVideoPresentInStorefrontProductPage">
53+
<!-- Check the navigation arrows on Storefront Product page -->
54+
<actionGroup ref="AssertProductVideoNavigationArrowsActionGroup" stepKey="assertProductVideoNavigationArrowsOnStorefrontProductPage">
5955
<argument name="videoType" value="vimeo"/>
6056
</actionGroup>
61-
<actionGroup ref="AssertCloseButtonHiddenProductVideoActionGroup" stepKey="assertCloseVideoButtonIsHidden"/>
62-
63-
<!-- Click Play video button -->
64-
<actionGroup ref="ClickPlayButtonProductVideoActionGroup" stepKey="clickPlayVideoButton"/>
65-
66-
<!-- Assert product navigation arrows -->
67-
<actionGroup ref="AssertPrevButtonHiddenProductVideoActionGroup" stepKey="assertPrevButtonIsHidden2"/>
68-
<actionGroup ref="AssertNextButtonHiddenProductVideoActionGroup" stepKey="assertNextButtonIsHidden"/>
69-
70-
<!-- Click Close video button -->
71-
<actionGroup ref="ClickCloseButtonProductVideoActionGroup" stepKey="clickCloseVideoButton"/>
72-
73-
<!-- Click previous button -->
74-
<actionGroup ref="ClickPrevButtonProductVideoActionGroup" stepKey="clickPrevNavigationButton"/>
7557
</test>
7658
</tests>

0 commit comments

Comments
 (0)