Skip to content
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

Get tests passing w/ Chrome's new selectionchange event behavior #1473

Merged
merged 11 commits into from
Aug 19, 2024

Conversation

NullVoxPopuli
Copy link
Sponsor Collaborator

@NullVoxPopuli NullVoxPopuli commented Aug 15, 2024

Unblocks: #1470

Last successful build (nightly cron): https://github.com/emberjs/ember-test-helpers/actions/runs/10173407362
Next nightly cron failed: https://github.com/emberjs/ember-test-helpers/actions/runs/10191329093

Findings:

In the changes in this PR:

  • added selection event, where appropriate, conditioned on "isChrome"
    • of note, if the browser doesn't have focus the order of the keyup and selection change events flip
      • same for the mouseup, click and selectionchange behavior

@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review August 15, 2024 20:52
@NullVoxPopuli NullVoxPopuli changed the title Get tests passing Get tests passing w/ Chrome's new selectionchange event behavior Aug 15, 2024
@@ -18,6 +18,10 @@ if (isEdge) {
blurSteps = ['focusout', 'blur'];
}

if (isChrome) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we not do selectionchange for Firefox since that supports it also?

Copy link
Sponsor Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The behavior is slightly different.

When I was working on this PR, I had 5 browsers open

  • FireFox
  • FireFox Developer Edition
  • Safari
  • Chrome
  • Chrome Canary

😅

'focusin',
'mouseup',
'click',
'selectionchange',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just push selectionchange to the existing list?

Copy link
Sponsor Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then we'd need to add inverted conditions for safari and firefox

@NullVoxPopuli NullVoxPopuli merged commit 5aad468 into master Aug 19, 2024
20 checks passed
@NullVoxPopuli NullVoxPopuli deleted the fix-test-failures branch August 19, 2024 19:54
@github-actions github-actions bot mentioned this pull request Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants