From 8ebd188600a6e68ec1b661cc1a47db0f4e549973 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sun, 25 Feb 2024 16:16:46 +0100 Subject: [PATCH] fix: time-based price test --- tests/smart-cost.spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/smart-cost.spec.js b/tests/smart-cost.spec.js index 4af7cba0f..8ffc278d5 100644 --- a/tests/smart-cost.spec.js +++ b/tests/smart-cost.spec.js @@ -37,9 +37,8 @@ test.describe("smart cost limit", async () => { .selectOption("≤ 50.0 ct/kWh"); await page.getByTestId("loadpoint-settings-modal").getByLabel("Close").click(); await expect(page.getByTestId("loadpoint-settings-modal")).not.toBeVisible(); - await expect(page.getByTestId("vehicle-status")).toHaveText( - "Charging cheap energy: 40.0 ct (limit 50.0 ct)" - ); + await expect(page.getByTestId("vehicle-status")).toContainText("Charging cheap energy"); + await expect(page.getByTestId("vehicle-status")).toContainText("(limit 50.0 ct)"); }); test("price above limit", async ({ page }) => { await page.goto("/");