fix(web): fix baseline tests

Previously the cookies for the baseline tests were set to a fixed time
which might be in the past. This change now calculates the expiration
time and sets them to expire in 60s.

Test-bot: skip
This commit is contained in:
Eberhard Beilharz 2026-01-19 18:17:03 +01:00
parent 2e404390c0
commit 8d3a6da260
No known key found for this signature in database
GPG key ID: E9140597606020D3

View file

@ -140,7 +140,7 @@ test.describe('Baseline tests', () => {
value: encodeURIComponent(`${option.key}=${option.value};`),
domain: 'localhost',
path: '/',
expires: 1768672167
expires: Date.now() / 1000 + 60, // expire in 1 minute
});
}
}