-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[web] Make web integration tests shadow DOM aware. #82926
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
[web] Make web integration tests shadow DOM aware. #82926
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of comments which maybe should live in the code somewhere :/
dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration.dart
Outdated
Show resolved
Hide resolved
|
||
// Press and release CapsLock. | ||
dispatchKeyboardEvent(input, 'keydown', <String, dynamic>{ | ||
'key': 'CapsLock', | ||
'code': 'CapsLock', | ||
'bubbles': true, | ||
'cancelable': true, | ||
'composed': true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composed
needs to be set to true
in synthetic events (similar to bubbles
) so the event propagates in a similar way as to when it's dispatched by the browser. Docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(This needs a rebase, to land after #82939) |
This pull request is not suitable for automatic merging in its current state.
|
A new version of the web engine changes the markup of Flutter Web apps to render them inside the ShadowDOM of the
flt-glass-pane
tag.This PR changes the flutter framework engine integration tests so they are backwards (and forwards) compatible with both DOM styles.
Issues
Waiting for: FlutterDriver: deprecate enableAccessibility; redirect it to setSemantics; add setSemantics tests #82939Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.