Problem/Motivation
Currently, Javascript tests have animations disabled by default, which was implemented in #2901792: Disable all animations in Javascript testing, this was a very good change that addressed many random test failures. This is done via rules added by css_disable_transitions_test.module
These rules include the following:
-o-transform: none !important;
-moz-transform: none !important;
-ms-transform: none !important;
-webkit-transform: none !important;
transform: none !important;
The transform: rule isn't related to transitions or animation, it is a static repositioning of an element from its default position.
Having this does not benefit FunctionalJavascript tests, but it does break PopperJS. This means that animations can't be disabled on any test using PopperJS, and those happen to be tests that would particularly benefit from disabling animations.
Proposed resolution
Remove transform:, we don't needed
Remaining tasks
Address @todos
Review and commit.
User interface changes
N/A
API changes
Potential change to WebDriverTestBase
Data model changes
N/A
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3082602-10-89X.patch | 905 bytes | bnjmnm |
| #10 | 3082602-10-88X.patch | 905 bytes | bnjmnm |
| #4 | 3082602-4.patch | 3.82 KB | bnjmnm |
Comments
Comment #3
bnjmnmComment #4
bnjmnmComment #5
bnjmnmComment #6
longwaveMakes sense, I have used similar CSS rules in other test frameworks and I agree that
transformis incorrect here.Comment #7
catchCommitted 4994ca4 and pushed to 9.1.x, cherry-picked to 8.9.x. Thanks!
We should commit this to 8.8/8.9 too, but needs a re-roll for that.
Also I assume this will fix #3037436: [random test failure] Make QuickEditIntegrationTest more robust and fail proof.
Comment #10
bnjmnmHere are versions for 8.8.x and 8.9.x
While this will help the stability of Quickedit tests in Drupal 9, it won't impact Drupal 8 as D8 did not have
$disableCssAnimations = FALSE;in those tests. It looks like the tests are failing in 8 in the issue you referenced, so that one should stay open.Comment #11
kristen polComment #12
kristen polThanks for the patches.
1) Compared patches for 8.8 and 8.9 against the 9.1 patch and see that the only differences are the 8* patches don't have:
protected $disableCssAnimations = FALSE;as mentioned in #10.
2) Searched the code for
disableCssAnimationsand only found it referenced here:but this code is also in 9.0 and 9.1.
3) Applies cleanly to 8.8 and 8.9:
4) Assuming #1 is ok then marking RTBC as it doesn't look like any manual testing happened for the 9* patch.
Comment #13
xjmYay!
This should have @lauriii's signoff I think before going in.
Comment #16
lauriiiYeah,
transformshouldn't be in that list since it doesn't necessarily have anything to do with transitions. It doesn't seem like there would be risk in introducing this change. Based on that, it seems fine to backport this to 8.9.x and 8.8.x, even though it isn't needed for Popper.js there.Backported to 8.9.x and 8.8.x.