-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add tests to Address Book #1657
Conversation
Deploying with Cloudflare Pages
|
Codecov Report
@@ Coverage Diff @@
## master #1657 +/- ##
==========================================
+ Coverage 81.31% 82.50% +1.19%
==========================================
Files 171 171
Lines 4345 4345
Branches 777 777
==========================================
+ Hits 3533 3585 +52
+ Misses 812 760 -52
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7556486
to
14e90bf
Compare
renderComponent(store) | ||
await userEvent.click(screen.getByRole('button', { name: 'toolbar.contacts.save' })) | ||
expect(screen.getAllByText('toolbar.contacts.validation.required').length).toEqual(2) | ||
expect(onSave).not.toHaveBeenCalled() |
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.
👍
.fill('oasis1qq2vzcvxn0js5unsch5me2xz4kr43vcasv0d5eq4') | ||
await tab2.getByRole('button', { name: 'Save' }).click() | ||
await expect(tab2.getByTestId('account-choice')).toHaveCount(1) | ||
await expect(page.getByTestId('account-choice')).toHaveCount(1) |
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.
(potential additional e2e: expect not to sync if user changes name and cancels)
14e90bf
to
17afdc4
Compare
17afdc4
to
05a0460
Compare
No description provided.