chore: improve e2e stability (#20035)

This commit is contained in:
Michael Geers 2025-03-23 10:45:15 +01:00 • committed by GitHub
parent 3691eeb148
commit d6266fea68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,12 +1,13 @@
<template>
<GenericModal
id="loadpointModal"
ref="modal"
:title="modalTitle"
data-testid="loadpoint-modal"
:fade="fade"
@open="open"
@opened="opened"
@close="close"
@open="onOpen"
@opened="onOpened"
@close="onClose"
>
<form ref="form" class="container mx-0 px-0" @submit.prevent="isNew ? create() : update()">
<FormRow
@ -600,7 +601,7 @@ export default {
meters: { type: Array, default: () => [] },
circuits: { type: Array, default: () => [] },
},
emits: ["updated", "openMeterModal", "openChargerModal", "close", "opened"],
emits: ["updated", "openMeterModal", "openChargerModal", "opened"],
data() {
return {
isModalVisible: false,
@ -771,17 +772,19 @@ export default {
}
this.saving = false;
},
open() {
onOpen() {
this.isModalVisible = true;
},
opened() {
onOpened() {
this.$emit("opened");
},
close() {
this.$emit("close");
onClose() {
this.showAllSelected = false;
this.isModalVisible = false;
},
close() {
this.$refs.modal.close();
},
editCharger() {
this.$emit("openChargerModal", this.values.charger);
},