From aa97dbdbb6ee92f2a828172b0341398797f5b511 Mon Sep 17 00:00:00 2001 From: Tim Down <158919+timdown@users.noreply.github.com> Date: Tue, 6 May 2025 11:53:20 +0100 Subject: [PATCH] Merge pull request #25269 from overleaf/td-flaky-tags-test Add waits for flaky tag list test GitOrigin-RevId: 9d0bf2acd54d07e96fe6837296176e62bf981947 --- .../components/sidebar/tags-list.test.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)', }) })