-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feature(cdk/testing) emulate selection in testbed environment #19946
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
Conversation
b92ddde to
3fd97c3
Compare
|
did not expect tests to run in rtl direction :-/ |
|
ok, I really tried hard and I got no chance to reproduce the failed right-to-left tests on Edge 17. Seems not to happen in new Edge (based on chromium) anymore and I didn't find another browser with the same behavior. I can't find a possibility to downgrade Edge or get a machine which isn't updated yet. |
6fb0cc9 to
51f72d9
Compare
|
We support the latest 2 versions of Edge (i.e. 84 & 83), as well as IE11. I think the Edge version running on our CI is just out of date. |
|
Actually if you pull from master, I believe the browsers have now been updated |
51f72d9 to
8c5ffdf
Compare
- emulate cursor move on send arrow keys - emulate selection on send shift + arrow key - respect cursor position and selection on send characters Prerequisite angular#19709 (will need select on tab into input with text)
Currently sending a key to a test input changes it's value even if default event is prevented. Now default event won't run if default is prevented
304a3a2 to
2c683ce
Compare
|
@e-hein I talked to my TL about this and we're concerned about the amount of additional code we would have to maintain to support this, so I'm not sure we want to merge it into this repo. That said we definitely see how this is valuable and want to make sure that there's a good way for people to plug in behavior like this if they need it. I think this could be accomplished by extending the |
|
@mmalerba thanks for your feedback. I also thought about that before I startet and I really understand your point. In fact I did publish to a separate repo before because of that point. I did not extend the Why to prefer an integrated solution:
Some options and alternatives to think about:
Finally 2 more points
|
|
@e-hein Thanks for the suggestions, I've added an agenda item to our next team meeting to discuss this. I do agree that there are some things we could do to make it a little easier for people who want to extend the keyboard emulation functionality |
|
After discussion this with the team we came to the following conclusions:
|
|
@mmalerba Thanks for discussing about the item and the detailed answer. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently arrow keys have no effect in TestbedEnvironment and sending keys does not respect cursor position or selections.
This adjusts behavior in TestbedEnvironment to get closer to the behavior of ProtractorEnvironment (real browsers).
It's a prerequisite to #19709 (will need select on tab into input with text). But in fact this is the larger part because selection handling is much more than emulating tab.