Skip to content

Commit 57da705

Browse files
committed
Fix test assertions
1 parent 7dcd017 commit 57da705

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/clerk-js/src/ui/components/OrganizationProfile/__tests__/InviteMembersPage.test.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,10 @@ describe('InviteMembersPage', () => {
357357
{ wrapper },
358358
);
359359

360+
expect(getByRole('button', { name: 'Send invitations' })).toBeDisabled();
360361
await userEvent.type(getByTestId('tag-input'), '[email protected],');
361-
await waitFor(() => expect(getByRole('button', { name: /select role/i })).toBeInTheDocument());
362-
await userEvent.click(getByRole('button', { name: /select role/i }));
363-
await userEvent.click(getByRole('button', { name: /admin/i }));
364-
await waitFor(() => expect(getByRole('button', { name: 'Send invitations' })).not.toBeDisabled());
362+
expect(getByRole('button', { name: 'Send invitations' })).not.toBeDisabled();
363+
await userEvent.click(getByRole('button', { name: /mydefaultrole/i }));
365364
});
366365
});
367366

0 commit comments

Comments
 (0)