fix: refresh interval getting incremented by 10 on status page despite a minimum of 5 (#5961)

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Lyall
2025-07-11 22:41:43 +01:00
committed by GitHub
parent 03037e2a9a
commit 487cb8fdc5
2 changed files with 12 additions and 4 deletions

View File

@@ -121,8 +121,8 @@ test.describe("Status Page", () => {
await expect(page.getByTestId("update-countdown-text")).toContainText("00:");
const updateCountdown = Number((await page.getByTestId("update-countdown-text").textContent()).match(/(\d+):(\d+)/)[2]);
expect(updateCountdown).toBeGreaterThanOrEqual(refreshInterval); // cant be certain when the timer will start, so ensure it's within expected range
expect(updateCountdown).toBeLessThanOrEqual(refreshInterval + 10);
expect(updateCountdown).toBeGreaterThanOrEqual(refreshInterval - 10); // cant be certain when the timer will start, so ensure it's within expected range
expect(updateCountdown).toBeLessThanOrEqual(refreshInterval);
await expect(page.locator("body")).toHaveClass(theme);