From da916c9c139539d9faefb7048a537b73eec914e7 Mon Sep 17 00:00:00 2001 From: Tim Down <158919+timdown@users.noreply.github.com> Date: Tue, 2 May 2023 15:46:06 +0100 Subject: [PATCH] Merge pull request #12906 from overleaf/td-history-fix-labels-test Expect correct number of labels in history version list test GitOrigin-RevId: 2a56b21c7359aad5111a2a7879f31fb5e7c6b73d --- .../frontend/features/history/components/change-list.spec.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/test/frontend/features/history/components/change-list.spec.tsx b/services/web/test/frontend/features/history/components/change-list.spec.tsx index 42e8674bd0..4f5b2d7c4a 100644 --- a/services/web/test/frontend/features/history/components/change-list.spec.tsx +++ b/services/web/test/frontend/features/history/components/change-list.spec.tsx @@ -398,7 +398,9 @@ describe('change list', function () { waitForData() cy.findByLabelText(/labels/i).click({ force: true }) - cy.get('.history-version-label').should('have.length', 1) + + // One pseudo-label for the current state, one for our label + cy.get('.history-version-label').should('have.length', 2) }) }) })