Skip to content

Commit ef3941b

Browse files
committed
Fix test assertions
Fix test assertions
1 parent 2b0050c commit ef3941b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ describe('InviteMembersPage', () => {
245245
await waitFor(() => expect(getByRole('button', { name: /select role/i })).toBeInTheDocument());
246246
});
247247

248-
it('enables selecting other options if default role is not available', async () => {
248+
it.only('enables selecting other options if default role is not available', async () => {
249249
const { wrapper, fixtures } = await createFixtures(f => {
250250
f.withOrganizations();
251251
f.withOrganizationDomains(undefined, 'mydefaultrole');
@@ -285,7 +285,7 @@ describe('InviteMembersPage', () => {
285285
});
286286

287287
fixtures.clerk.organization?.inviteMembers.mockResolvedValueOnce([{}] as OrganizationInvitationResource[]);
288-
const { getByRole, userEvent, getByTestId } = render(
288+
const { findByText, getByRole, userEvent, getByTestId } = render(
289289
<Action.Root>
290290
<InviteMembersScreen />
291291
</Action.Root>,
@@ -294,7 +294,7 @@ describe('InviteMembersPage', () => {
294294
await userEvent.type(getByTestId('tag-input'), 'test+1@clerk.com,');
295295
await waitFor(() => expect(getByRole('button', { name: /select role/i })).toBeInTheDocument());
296296
await userEvent.click(getByRole('button', { name: /select role/i }));
297-
await userEvent.click(getByRole('button', { name: /admin/i }));
297+
await userEvent.click(await findByText(/admin/i));
298298
await waitFor(() => expect(getByRole('button', { name: 'Send invitations' })).not.toBeDisabled());
299299
});
300300

0 commit comments

Comments
 (0)