Heating: add time-based energy statistics (today, 24h, 7d) to loadpoint tile (#31781)
This commit is contained in:
parent
31cf9748aa
commit
b02a40353f
15 changed files with 236 additions and 26 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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 }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue