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

refactor: reorganize tests for key event behavior #863

Merged
merged 2 commits into from
Feb 25, 2022
Merged

Conversation

ph-fritsche
Copy link
Member

What:

Refactor tests for the default behavior of key events.

Why:

The implementation how events are dispatched and the default behavior is triggered was changed in #838 .
The implementation how the DOM was manipulated due to user input was cleaned up in #851 .

The relationship between requirements as described by the tests and implementing modules was unclear.
Many tests mixing unrelated aspects of the software make it hard to distinguish between desirable changes and regressions.

Checklist:

  • Tests
  • Ready to be merged

@ph-fritsche ph-fritsche added this to the userEvent v14 milestone Feb 25, 2022
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ad21859:

Sandbox Source
userEvent-PR-template Configuration

@codecov
Copy link

codecov bot commented Feb 25, 2022

Codecov Report

Merging #863 (ad21859) into beta (5ea38e8) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##              beta      #863   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           82        82           
  Lines         1717      1717           
  Branches       614       614           
=========================================
  Hits          1717      1717           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ea38e8...ad21859. Read the comment docs.

@ph-fritsche ph-fritsche merged commit 7171c9d into beta Feb 25, 2022
@ph-fritsche ph-fritsche deleted the refactor branch February 25, 2022 14:05
@github-actions
Copy link

github-actions bot commented Mar 1, 2022

🎉 This PR is included in version 14.0.0-beta.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant