-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Try to fix flaky synced pattern test #55406
Conversation
Size Change: 0 B Total Size: 1.66 MB ℹ️ View Unchanged
|
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.
Thank you, @ellatrix!
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 sounds like a reasonable fix for the flaky test to me, but I'm wondering if the flaky test reveals there's a focus loss after creating a pattern when there mightn't be expected to be one?
From a quick look in #54804 it sounds like from calling setEditingPattern
after pattern creation it might be expected that focus is on the newly added pattern, whereas when I test out the steps of this e2e test locally, it seems that there could be a focus loss after inserting the pattern?
Here's a quick screengrab:
2023-10-18.14.21.41.mp4
I'll just CC @glendaviesnz and @aaronrobertshaw just in case there's anything unexpected there.
In terms of this test, which is about writing flow, the change here LGTM as the test is meant to cover the Up arrow behaviour further down int his test, and this PR unblocks stabilising that.
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.
I'll just CC @glendaviesnz and @aaronrobertshaw just in case there's anything unexpected there.
Thanks for the ping 👍
From a quick look in #54804 it sounds like from calling setEditingPattern after pattern creation it might be expected that focus is on the newly added pattern
That expectation is probably confirmed via the existing test relying on the toBeFocused
assertion. @kevin940726 might have a better understanding of what the expected behaviour should be.
In terms of this test, I'm on board with the proposed change if it unblocks things and fixes the flakey test.
Yes, there's most likely a preexisting bug. I didn't look into it further since my priority was to get this test stabilised and this test doesn't have to rely on he pattern receiving focus after insertion. Thanks for anyone looking into this bug. |
I have a fix for the focus issue opened in #55473! |
What?
Fixes #55284.
It seems to be the first focus check that is the problem, maybe focus after converting to a synced pattern is not guaranteed. Let's just wait for the block to be loaded, I think
toBeVisible
should do that.Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast