From ec80c283e7cc6640fefa0197cd5022bdd33aeeb2 Mon Sep 17 00:00:00 2001 From: Arne Luenser Date: Mon, 9 Sep 2024 17:07:02 +0200 Subject: [PATCH] fix: deflake test --- .../tests/desktop/identifier_first/code.login.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/playwright/tests/desktop/identifier_first/code.login.spec.ts b/test/e2e/playwright/tests/desktop/identifier_first/code.login.spec.ts index ddb0d06c4be9..5cfe7c8f7045 100644 --- a/test/e2e/playwright/tests/desktop/identifier_first/code.login.spec.ts +++ b/test/e2e/playwright/tests/desktop/identifier_first/code.login.spec.ts @@ -220,8 +220,8 @@ test.describe(() => { expect(newSession).toBeDefined() expect(newSession.active).toBe(true) - expect(initialSession.authenticated_at).not.toEqual( - newSession.authenticated_at, - ) + const initDate = Date.parse(initialSession.authenticated_at) + const newDate = Date.parse(newSession.authenticated_at) + expect(newDate).toBeGreaterThanOrEqual(initDate) }) })