Skip to content

Commit

Permalink
adjust e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
naltatis committed Jan 3, 2025
1 parent 6f7cd82 commit 4303a0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/battery-settings.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ test.describe("battery settings", async () => {
await page.getByRole("button", { name: "Close" }).click();
await expect(page.getByTestId("battery-settings-modal")).not.toBeVisible();
await page.getByTestId("energyflow").click();
await page.getByRole("button", { name: "cheap grid energy (≤ 50.0 ct)" }).click();
await page.getByRole("button", { name: "grid charging active (≤ 50.0 ct)" }).click();
await expect(page.getByTestId("battery-settings-modal")).toBeVisible();
await page.getByLabel("Price limit").selectOption({ label: "≤ -10.0 ct/kWh" });
await page.getByRole("button", { name: "Close" }).click();
await expect(page.getByTestId("battery-settings-modal")).not.toBeVisible();
await expect(page.getByRole("button", { name: "grid charging when ≤ -10.0 ct" })).toBeVisible();
});
});

0 comments on commit 4303a0a

Please sign in to comment.