diff --git a/services/web/test/frontend/features/project-list/components/sidebar/tags-list.test.tsx b/services/web/test/frontend/features/project-list/components/sidebar/tags-list.test.tsx index b8e5768c99..7d68a8f7fe 100644 --- a/services/web/test/frontend/features/project-list/components/sidebar/tags-list.test.tsx +++ b/services/web/test/frontend/features/project-list/components/sidebar/tags-list.test.tsx @@ -41,20 +41,20 @@ describe('', function () { fetchMock.removeRoutes().clearHistory() }) - it('displays the tags list', function () { - const header = screen.getByTestId('organize-projects') + it('displays the tags list', async function () { + const header = await screen.findByTestId('organize-projects') expect(header.textContent).to.equal('Organize Tags') - screen.getByRole('button', { + await screen.findByRole('button', { name: 'New Tag', }) - screen.getByRole('button', { + await screen.findByRole('button', { name: 'Tag 1 (1)', }) - screen.getByRole('button', { + await screen.findByRole('button', { name: 'Another tag (2)', }) - screen.getByRole('button', { + await screen.findByRole('button', { name: 'Uncategorized (3)', }) })