Commit 8e38d30
test(material/expansion): fix failing unit test on iOS14 safari
An expansion test seems to be flaky/failing in Safari on iOS14
because the `visibility: hidden` style from the expansion panel
content is not applied immediately. We fix this by enforcing
a style recalulcation like we do in the ripple. An alternative
would have been to switch the test to actual async/await where
we then need to wait at least until the next tick. It seems more
idiomatic to stick with `fakeAsync` here though.
(cherry picked from commit 80d3e28)1 parent 9a6930a commit 8e38d30
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
0 commit comments