0.313 backport: chore: pin clock in device colors test (#32325) (#32387)

This commit is contained in:
andig 2026-08-01 13:16:37 +02:00 • committed by GitHub
parent 0990bd9784
commit e4ca549ea6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,10 @@ function chartSection(page: Page, heading: string): Locator {
}
test("device colors: autoassign, override, persistence", async ({ page }) => {
// fixture sessions are dated 2026-05. Sessions.vue ranks loadpoints by energy
// over the last three months relative to now, so pin the clock to keep them in range
await page.clock.setFixedTime(new Date("2026-05-15T12:00:00Z"));
// ---------- Step 1 — Sessions, by-vehicle view ----------
await page.goto("/#/sessions?year=2026&month=5");
await expect(page.getByRole("heading", { name: "Charging Sessions" })).toBeVisible();