From 588d92283e6b7f057de4300d8969465158f32601 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 18 Apr 2023 16:46:17 +0200 Subject: [PATCH] Fix modal input event handling --- .../e2e/frontend/modules/snapshots.spec.js | 3 +- client/src/components/ModalInput.vue | 29 ++++----- .../src/components/profile/EditNameWizard.vue | 62 +++++++------------ .../snapshots/EditSnapshotTitleWizard.vue | 13 ++-- 4 files changed, 43 insertions(+), 64 deletions(-) diff --git a/client/cypress/e2e/frontend/modules/snapshots.spec.js b/client/cypress/e2e/frontend/modules/snapshots.spec.js index feb5e6d8..becc562b 100644 --- a/client/cypress/e2e/frontend/modules/snapshots.spec.js +++ b/client/cypress/e2e/frontend/modules/snapshots.spec.js @@ -245,7 +245,8 @@ describe('Snapshot', () => { cy.visit('module/miteinander-reden/snapshots'); cy.getByDataCy('snapshot-link').should('have.text', 'Old Title'); cy.getByDataCy('rename-snapshot-button').click(); - cy.getByDataCy('edit-name-input').clear().type(newTitle); + cy.getByDataCy('edit-name-input').clear(); + cy.getByDataCy('edit-name-input').type(newTitle); cy.getByDataCy('modal-save-button').click(); cy.getByDataCy('snapshot-link').should('have.text', 'New Title'); waitNTimes(5); diff --git a/client/src/components/ModalInput.vue b/client/src/components/ModalInput.vue index 96af04a7..44387a00 100644 --- a/client/src/components/ModalInput.vue +++ b/client/src/components/ModalInput.vue @@ -1,24 +1,25 @@ - diff --git a/client/src/components/profile/EditNameWizard.vue b/client/src/components/profile/EditNameWizard.vue index 8a9fbbdd..53dc6725 100644 --- a/client/src/components/profile/EditNameWizard.vue +++ b/client/src/components/profile/EditNameWizard.vue @@ -1,56 +1,36 @@ - diff --git a/client/src/components/snapshots/EditSnapshotTitleWizard.vue b/client/src/components/snapshots/EditSnapshotTitleWizard.vue index eea25531..f78b8c2a 100644 --- a/client/src/components/snapshots/EditSnapshotTitleWizard.vue +++ b/client/src/components/snapshots/EditSnapshotTitleWizard.vue @@ -1,12 +1,6 @@