Repository navigation
Commit 5ca1eb8
test(webview): finish CSS transitions after the visual theme changes
applyVisualTheme changes the theme classes after the story mounts. The
Button transition-colors class then changes the border color over about
150 ms. expectContrast can read a color between the two themes, so the
WelcomeViewProvider contrast check fails at random.
Finish each running CSSTransition after the theme classes change. Other
animation types stay as they are, because finishing an infinite CSS
animation throws an error.
Fixes #2326
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4d1a543 commit 5ca1eb8
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
0 commit comments