-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MFTF - Flaky Video Background Tests #704
Comments
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. Please, add a comment to assign the issue:
|
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
(//div<contains(@class,'pagebuilder-content-type') and contains(@class,'pagebuilder-row')>)<1>//div<contains(@id,'jarallax-container')>//iframe|(//div<contains(@class,'pagebuilder-content-type') and contains(@class,'pagebuilder-row')>)<1>//div<contains(@id,'jarallax-container')>//video
After:
(//div<contains(@class,'pagebuilder-content-type') and contains(@class,'pagebuilder-row')>)<1>//div<contains(@id,'jarallax-container')><last()>//iframe|(//div<contains(@class,'pagebuilder-content-type') and contains(@class,'pagebuilder-row')>)<1>//div<contains(@id,'jarallax-container')><last()>//video
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.
The text was updated successfully, but these errors were encountered: