From 58207db6c3a3133fd928fc77675dbe8778a01988 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 17 Nov 2021 23:26:49 +0100 Subject: [PATCH] fix: kanban tests --- cypress/integration/list/list-view-kanban.spec.js | 10 +++++----- src/components/tasks/partials/kanban-card.vue | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/integration/list/list-view-kanban.spec.js b/cypress/integration/list/list-view-kanban.spec.js index 01219d01..52d67282 100644 --- a/cypress/integration/list/list-view-kanban.spec.js +++ b/cypress/integration/list/list-view-kanban.spec.js @@ -38,7 +38,7 @@ describe('List View Kanban', () => { }) cy.visit('/lists/1/kanban') - cy.get('.kanban .bucket') + cy.getSettled('.kanban .bucket') .contains(buckets[0].title) .get('.bucket-footer .button') .contains('Add another task') @@ -70,7 +70,7 @@ describe('List View Kanban', () => { it('Can set a bucket limit', () => { cy.visit('/lists/1/kanban') - cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger') + cy.getSettled('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger') .first() .click() cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-menu .dropdown-item') @@ -91,7 +91,7 @@ describe('List View Kanban', () => { it('Can rename a bucket', () => { cy.visit('/lists/1/kanban') - cy.get('.kanban .bucket .bucket-header .title') + cy.getSettled('.kanban .bucket .bucket-header .title') .first() .type('{selectall}New Bucket Title{enter}') cy.get('.kanban .bucket .bucket-header .title') @@ -102,7 +102,7 @@ describe('List View Kanban', () => { it('Can delete a bucket', () => { cy.visit('/lists/1/kanban') - cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger') + cy.getSettled('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger') .first() .click() cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-menu .dropdown-item') @@ -129,7 +129,7 @@ describe('List View Kanban', () => { }) cy.visit('/lists/1/kanban') - cy.get('.kanban .bucket .tasks .task') + cy.getSettled('.kanban .bucket .tasks .task') .contains(tasks[0].title) .first() .drag('.kanban .bucket:nth-child(2) .tasks .dropper') diff --git a/src/components/tasks/partials/kanban-card.vue b/src/components/tasks/partials/kanban-card.vue index d0edae3e..2bd2f33f 100644 --- a/src/components/tasks/partials/kanban-card.vue +++ b/src/components/tasks/partials/kanban-card.vue @@ -7,7 +7,7 @@ 'has-light-text': !colorIsDark(task.hexColor) && task.hexColor !== `#${task.defaultColor}` && task.hexColor !== task.defaultColor, }" :style="{'background-color': task.hexColor !== '#' && task.hexColor !== `#${task.defaultColor}` ? task.hexColor : false}" - @click.exact="() => $router.push({ name: 'task.kanban.detail', params: { id: task.id } })" + @click.exact="openTaskDetail()" @click.ctrl="() => toggleTaskDone(task)" @click.meta="() => toggleTaskDone(task)" >