Anticipate Timeout-Exceptions on UI tests
(MGNLTEST-208)
|
|
| Status: | Closed |
| Project: | Magnolia Test Framework |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.3.1 |
| Type: | Sub-task | Priority: | Neutral |
| Reporter: | Christoph Meier | Assignee: | Christoph Meier |
| Resolution: | Resolved | Votes: | 0 |
| Labels: | VN-Testing, foundation_team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 1d 7h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Date of First Response: | |||||||||
| Description |
|
When looking at vids of failed tests - we can see "frozen" animations - looks a bit like we see more than one "frame", elements of contents-apps seem to miss, etc. Thus skipping the animations - if doable "easy" could help on the issue.
How we do/dit it finally?Adding css via UI project with the vaadin theme using the media query: @media (prefers-reduced-motion: reduce) And in test-fwk we call the chrome-driver with the flag force-prefers-reduced-motion.
Developer note:the command line flag Just a hunch (perhaps a bit hackish):
|
| Comments |
| Comment by Christoph Meier [ 06/Apr/22 ] |
|
--wm-window-animations-disabled didn't do the trick. Next thing to try out, via CSS. See:
|
| Comment by Maxime Michel [ 14/Apr/22 ] |
| Comment by Christoph Meier [ 26/Apr/22 ] |
|
A few thoughts About injecting the CSS via JavaScript / JavaScriptExecutor of Selenium
How to enable the skip-animation
Conclusion:
|
| Comment by Christoph Meier [ 05/May/22 ] |
|
reviewed and integrated |