Battery grid charge non experimental (#22090)
This commit is contained in:
parent
42ed7da2e9
commit
6d32c898c3
2 changed files with 4 additions and 10 deletions
|
|
@ -25,7 +25,7 @@
|
|||
href="#"
|
||||
@click.prevent="showGridTab"
|
||||
>
|
||||
{{ $t("batterySettings.gridChargeTab") }} 🧪
|
||||
{{ $t("batterySettings.gridChargeTab") }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -313,12 +313,7 @@ export default defineComponent({
|
|||
return this.battery.some(({ controllable }) => controllable);
|
||||
},
|
||||
gridChargePossible() {
|
||||
return (
|
||||
this.controllable &&
|
||||
this.isModalVisible &&
|
||||
this.smartCostAvailable &&
|
||||
this.$hiddenFeatures()
|
||||
);
|
||||
return this.controllable && this.isModalVisible && this.smartCostAvailable;
|
||||
},
|
||||
bufferOptions() {
|
||||
const options = [];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { test, expect } from "@playwright/test";
|
||||
import { start, stop, baseUrl } from "./evcc";
|
||||
import { enableExperimental, expectModalVisible, expectModalHidden } from "./utils";
|
||||
import { expectModalVisible, expectModalHidden } from "./utils";
|
||||
test.use({ baseURL: baseUrl() });
|
||||
|
||||
test.beforeAll(async () => {
|
||||
|
|
@ -38,13 +38,12 @@ test.describe("battery settings", async () => {
|
|||
|
||||
test("grid charging", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
await enableExperimental(page);
|
||||
await page.getByTestId("topnavigation-button").click();
|
||||
await page.getByTestId("topnavigation-battery").click();
|
||||
const modal = page.getByTestId("battery-settings-modal");
|
||||
await expectModalVisible(modal);
|
||||
|
||||
await modal.getByRole("link", { name: "Grid charging 🧪" }).click();
|
||||
await modal.getByRole("link", { name: "Grid charging" }).click();
|
||||
await modal.getByLabel("Price limit").selectOption({ label: "≤ 50.0 ct/kWh" });
|
||||
await expect(modal).toContainText("5.0 ct – 50.0 ct");
|
||||
await page.getByRole("button", { name: "Close" }).click();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue