Sessions UI: make guest vehicle selectable (#26586)

This commit is contained in:
Maschga 2026-01-10 19:34:50 +01:00 • committed by GitHub
parent bfb0caec6b
commit 2b2e6a597a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View file

@ -229,7 +229,7 @@ export default defineComponent({
await this.updateSession({ vehicle: title });
},
async removeVehicle() {
await this.updateSession({ vehicle: null });
await this.updateSession({ vehicle: "" });
},
async changeLoadpoint(title: string) {
await this.updateSession({ loadpoint: title });

View file

@ -352,6 +352,17 @@ test.describe("session details", async () => {
const modal = page.getByTestId("session-details");
await expectModalVisible(modal);
// select guest vehicle
await modal.getByLabel("Vehicle").selectOption("Guest vehicle");
await modal.getByRole("button", { name: "Close" }).click();
await expectModalHidden(modal);
page.reload();
await page.getByTestId("sessions-entry").nth(0).click();
await expectModalVisible(modal);
await expect(modal.getByLabel("Vehicle")).toHaveValue("");
// edit carport and select known vehicle
await modal.getByLabel("Charging point").selectOption("Carport");
await modal.getByLabel("Vehicle").selectOption("blauer e-Golf");
await modal.getByRole("button", { name: "Close" }).click();