Open magento-engcom-team opened 3 years ago
The issue was exported from the internal JIRA. The link to the original JIRA issue: https://jira.corp.magento.com/browse/PB-472
Hi @magento-engcom-team. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
Issue
We (QA) introduced some flakiness into our MFTF tests in Banner Video Background (haven't seen the same issue in other content types). The following actiongroup is flaky:
The mentioned step in these actiongroup fails fairly infrequently but has failed 3 times in only 1 known build (in over a month)
http://10.234.238.165:8080/job/Functional-Tests-CE/3006/allure/#testresult/db256ca6ee804042?attachment=f3fb9a378cdb46c5
Affected Tests (not exhaustive)
Any test name with "VideoBackground" is worth investigating
Expectation
Update
Actiongroup is flaky in Slide content type as well so the issue is not specific to Banner
Update Aug 18 2021:
Root cause is that in some cases Jarallax will create multiple sibling containers per one individual content type (row, slide, or banner).
To better understand the cause, see the attached multiplejarallax_containers_one_row_videobackground.html. You will notice that there are two sibling jarallax containers containing the same YouTube iframe embed for a single row content type. When waiting for the visibility of the iframe element in MFTF, the selector targets both siblings due to lack of specificity, and therefore the 1st jarallax container is matched, which remains invisible throughout due to being covered/overlapped by the 2nd jarallax container sibling that is absolutely positioned above it (they have the same z-index, but the 2nd one is a next sibling and therefore will overlap the 1st).
videoBackgroundVideoElement is available for many content types and needs to be updated to incorporate <last()> in the xpath.
Example for Row's videoBackgroundVideoElement:
Before:
After:
Manual steps to reproduce this issue are varied. They can be consistently reproduced in slider via the following steps:
To reproduce the issue in Row, edit row to have a video background, and repeatedly and as quickly as possible press the Show/Hide on stage until the undesired effect is achieved.
Banner has not been tested but it can possibly be achieved in the same manner as Row.