From f3358269e5346ec53652a7d9f3643f739ea21809 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Tue, 30 Nov 2021 20:48:48 +0100 Subject: [PATCH] fix task remove label test --- cypress/integration/task/task.spec.js | 6 ++--- src/components/tasks/partials/comments.vue | 4 +-- src/components/tasks/partials/description.vue | 4 +-- src/components/tasks/partials/editLabels.vue | 26 +++++++------------ src/views/tasks/TaskDetailView.vue | 2 ++ 5 files changed, 19 insertions(+), 23 deletions(-) diff --git a/cypress/integration/task/task.spec.js b/cypress/integration/task/task.spec.js index a6be8185..048455bc 100644 --- a/cypress/integration/task/task.spec.js +++ b/cypress/integration/task/task.spec.js @@ -373,13 +373,13 @@ describe('Task', () => { cy.visit(`/tasks/${tasks[0].id}`) - cy.get('.task-view .details.labels-list .multiselect .input-wrapper') + cy.getSettled('.task-view .details.labels-list .multiselect .input-wrapper') .should('be.visible') .should('contain', labels[0].title) - cy.get('.task-view .details.labels-list .multiselect .input-wrapper') + cy.getSettled('.task-view .details.labels-list .multiselect .input-wrapper') .children() .first() - .get('a.delete') + .get('[data-cy="taskDetail.removeLabel"]') .click() cy.get('.global-notification') diff --git a/src/components/tasks/partials/comments.vue b/src/components/tasks/partials/comments.vue index 6565960c..4aab0098 100644 --- a/src/components/tasks/partials/comments.vue +++ b/src/components/tasks/partials/comments.vue @@ -152,7 +152,7 @@