From 54fafd22819184a681bfbff39bac538ddd004770 Mon Sep 17 00:00:00 2001 From: Rene Nulsch <33263735+ReneNulschDE@users.noreply.github.com> Date: Thu, 25 Jul 2024 09:15:05 +0200 Subject: [PATCH] chore: fix nightly build - Smart-cost test (#15043) --- tests/smart-cost-only.evcc.yaml | 2 +- tests/smart-cost.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/smart-cost-only.evcc.yaml b/tests/smart-cost-only.evcc.yaml index af231dd50..10677a225 100755 --- a/tests/smart-cost-only.evcc.yaml +++ b/tests/smart-cost-only.evcc.yaml @@ -40,5 +40,5 @@ tariffs: type: fixed price: 0.4 # EUR/kWh zones: - - hours: 0-1 + - hours: 1-6 price: 0.2 diff --git a/tests/smart-cost.spec.js b/tests/smart-cost.spec.js index 068e894b8..d9110ef37 100644 --- a/tests/smart-cost.spec.js +++ b/tests/smart-cost.spec.js @@ -38,7 +38,7 @@ test.describe("smart cost limit", async () => { await page.getByTestId("loadpoint-settings-modal").getByLabel("Close").click(); await expect(page.getByTestId("loadpoint-settings-modal")).not.toBeVisible(); await expect(page.getByTestId("vehicle-status-charger")).toHaveText("Charging…"); - await expect(page.getByTestId("vehicle-status-smartcost")).toHaveText("40.0 ct ≤ 40.0 ct"); + await expect(page.getByTestId("vehicle-status-smartcost")).toHaveText(/[24]0\.0 ct ≤ 40\.0 ct/); }); test("price above limit", async ({ page }) => { await page.goto("/");