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

Migrate more tests to vitest-browser-react and browserUserEvent #3636

Merged
merged 13 commits into from
Nov 19, 2024

Conversation

amanmahajan7
Copy link
Contributor

@amanmahajan7 amanmahajan7 commented Nov 18, 2024

I will rename utils in the next PR and migrate remaining test after that

@amanmahajan7 amanmahajan7 self-assigned this Nov 18, 2024
@amanmahajan7 amanmahajan7 changed the title Migrate remining tests to vitest-browser-react and browserUserEvent Migrate remaining tests to vitest-browser-react and browserUserEvent Nov 18, 2024
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.68%. Comparing base (376c5a1) to head (dab8697).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3636      +/-   ##
==========================================
+ Coverage   91.89%   93.68%   +1.79%     
==========================================
  Files          48       48              
  Lines        3453     3453              
  Branches      692      705      +13     
==========================================
+ Hits         3173     3235      +62     
+ Misses        280      218      -62     

see 9 files with indirect coverage changes

---- 🚨 Try these New Features:

@amanmahajan7 amanmahajan7 changed the title Migrate remaining tests to vitest-browser-react and browserUserEvent Migrate more tests to vitest-browser-react and browserUserEvent Nov 18, 2024
});

test('sortPriority defined using both providers', async () => {
setupProvider({ columns, rows: noRows });

const [, headerCell2, headerCell3] = getHeaderCells();
const user = userEvent.setup();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

await userEvent.click(getCellsAtRowIndex(0)[0]);
setupNew();
await testSelection(0, false);
await userEvent.click(getCellsAtRowIndexNew(0)[0]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This selects the checkbox now

@amanmahajan7 amanmahajan7 marked this pull request as ready for review November 19, 2024 18:17
test/browser/utils.tsx Outdated Show resolved Hide resolved
test/browser/utils.tsx Outdated Show resolved Hide resolved
amanmahajan7 and others added 2 commits November 19, 2024 12:51
Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
Co-authored-by: Nicolas Stepien <567105+nstepien@users.noreply.github.com>
nstepien
nstepien previously approved these changes Nov 19, 2024
@amanmahajan7 amanmahajan7 enabled auto-merge (squash) November 19, 2024 19:01
@amanmahajan7 amanmahajan7 merged commit 69f29e9 into main Nov 19, 2024
2 checks passed
@amanmahajan7 amanmahajan7 deleted the am-migrate-remaining-tests branch November 19, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants