diff --git a/plugins/scaffolder/src/components/fields/RepoUrlPicker/GithubRepoPicker.test.tsx b/plugins/scaffolder/src/components/fields/RepoUrlPicker/GithubRepoPicker.test.tsx index 0dfa2f28e8..c11f7a52a8 100644 --- a/plugins/scaffolder/src/components/fields/RepoUrlPicker/GithubRepoPicker.test.tsx +++ b/plugins/scaffolder/src/components/fields/RepoUrlPicker/GithubRepoPicker.test.tsx @@ -19,7 +19,7 @@ import { GithubRepoPicker } from './GithubRepoPicker'; import { render } from '@testing-library/react'; describe('GitubRepoPicker', () => { - it('renders a select if there is a list of allowed owners', () => { + it('renders a select if there is a list of allowed owners', async () => { const allowedOwners = ['owner1', 'owner2']; const { findByText } = render( { />, ); - expect(findByText('owner1')).toBeInTheDocument(); + expect(await findByText('owner1')).toBeInTheDocument(); + expect(await findByText('owner2')).toBeInTheDocument(); }); });