Fix removing a kanban bucket
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-12-28 23:42:09 +01:00
parent 2c273a7fd9
commit ddd24825a3
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
3 changed files with 7 additions and 4 deletions

View File

@ -309,7 +309,7 @@ describe('Lists', () => {
.should('contain', 'New Bucket Title') .should('contain', 'New Bucket Title')
}) })
it('Can delete a bucket', () => { it.only('Can delete a bucket', () => {
cy.visit('/lists/1/kanban') cy.visit('/lists/1/kanban')
cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger') cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger')
@ -327,6 +327,9 @@ describe('Lists', () => {
cy.get('.kanban .bucket .title') cy.get('.kanban .bucket .title')
.contains(buckets[0].title) .contains(buckets[0].title)
.should('not.exist') .should('not.exist')
cy.get('.kanban .bucket .title')
.contains(buckets[1].title)
.should('exist')
}) })

View File

@ -157,7 +157,7 @@ export default {
.then(r => { .then(r => {
ctx.commit('removeBucket', bucket) ctx.commit('removeBucket', bucket)
// We reload all buckets because tasks are being moved from the deleted bucket // We reload all buckets because tasks are being moved from the deleted bucket
ctx.dispatch('loadBucketsForList', bucket.listId) ctx.dispatch('loadBucketsForList', {listId: bucket.listId})
return Promise.resolve(r) return Promise.resolve(r)
}) })
.catch(e => { .catch(e => {