From 3acf47129500fd1eb827c22c07bf18ac6e0d8ecb Mon Sep 17 00:00:00 2001 From: Kamil Krzywda Date: Sat, 19 Sep 2026 14:20:34 +0000 Subject: [PATCH] =?UTF-8?q?test:=20fix=20ISS-007=20clock=20parse=20?= =?UTF-8?q?=E2=80=94=20replace=20only=20fixed=20the=20first=20space?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- e2e/panes.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/panes.spec.ts b/e2e/panes.spec.ts index fc47aaf..c4dfd49 100644 --- a/e2e/panes.spec.ts +++ b/e2e/panes.spec.ts @@ -119,7 +119,7 @@ test('sim clock ticks smoothly between polls — seconds advance without waiting const sample = async () => { const text = ((await clock.textContent()) ?? '').trim(); expect(text, `clock format: ${text}`).toMatch(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} UTC$/); - return Date.parse(`${text.replace(' ', 'T')}Z`); + return Date.parse(text.replace(' ', 'T').replace(' UTC', 'Z')); }; // Three samples ~1.3 s apart real time: at scale 1000 each gap is ≈1300 game seconds, so the