chore: fix nightly build - Smart-cost test (#15043)

This commit is contained in:
Rene Nulsch 2024-07-25 09:15:05 +02:00 • committed by GitHub
parent 5e608fb656
commit 54fafd2281
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -40,5 +40,5 @@ tariffs:
type: fixed
price: 0.4 # EUR/kWh
zones:
- hours: 0-1
- hours: 1-6
price: 0.2

View file

@ -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("/");