Heating: add time-based energy statistics (today, 24h, 7d) to loadpoint tile (#31781)

This commit is contained in:
Michael Geers 2026-07-18 12:06:24 +02:00 • committed by GitHub
parent 31cf9748aa
commit b02a40353f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 236 additions and 26 deletions

View file

@ -52,7 +52,7 @@ test.describe("session info", async () => {
await expect(page.getByTestId("sessionInfoLabel").first()).toContainText("Solar");
// by click on value
await page.getByTestId("sessionInfoValue").first().click();
await expect(page.getByTestId("sessionInfoLabel").first()).toContainText("Duration");
await expect(page.getByTestId("sessionInfoLabel").first()).toContainText("Last 24h");
});
test("keep selection on reload", async ({ page }) => {
await expect(page.getByTestId("sessionInfoLabel").first()).toContainText("Duration");

View file

@ -28,10 +28,11 @@ test.describe("demo mode", async () => {
await expect(page.getByRole("heading", { name: "Demo Mode" })).toBeVisible();
});
test("two loadpoints", async ({ page }) => {
await expect(page.getByTestId("loadpoint")).toHaveCount(2);
test("three loadpoints", async ({ page }) => {
await expect(page.getByTestId("loadpoint")).toHaveCount(3);
await expect(page.getByTestId("loadpoint").nth(0)).toContainText("Carport");
await expect(page.getByTestId("loadpoint").nth(1)).toContainText("Garage");
await expect(page.getByTestId("loadpoint").nth(2)).toContainText("Heat pump");
});
test("auth is locked", async ({ page }) => {