Skip to content

Commit b47f1bd

Browse files
committed
test(mosaic): wait for password dialog focus before typing the new password
1 parent b08dd03 commit b47f1bd

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

‎packages/mosaic/src/features/user-profile/user-profile-password-section/__tests__/user-profile-password-section.feature.test.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ describe('Changing a password', () => {
153153
try {
154154
const user = userEvent.setup();
155155
await user.click(screen.getByRole('button', { name: 'Change password' }));
156+
await waitFor(() => expect(screen.getByLabelText('Current password')).toHaveFocus());
156157
await user.type(screen.getByLabelText('New password'), 'new-password-123');
157158

158159
await waitFor(() =>

0 commit comments

Comments
 (0)