Fix removing a kanban bucket
This commit is contained in:
parent
2c273a7fd9
commit
ddd24825a3
3 changed files with 7 additions and 4 deletions
|
@ -309,7 +309,7 @@ describe('Lists', () => {
|
|||
.should('contain', 'New Bucket Title')
|
||||
})
|
||||
|
||||
it('Can delete a bucket', () => {
|
||||
it.only('Can delete a bucket', () => {
|
||||
cy.visit('/lists/1/kanban')
|
||||
|
||||
cy.get('.kanban .bucket .bucket-header .dropdown.options .dropdown-trigger')
|
||||
|
@ -327,6 +327,9 @@ describe('Lists', () => {
|
|||
cy.get('.kanban .bucket .title')
|
||||
.contains(buckets[0].title)
|
||||
.should('not.exist')
|
||||
cy.get('.kanban .bucket .title')
|
||||
.contains(buckets[1].title)
|
||||
.should('exist')
|
||||
})
|
||||
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ export default {
|
|||
.then(r => {
|
||||
ctx.commit('removeBucket', 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)
|
||||
})
|
||||
.catch(e => {
|
||||
|
|
Loading…
Reference in a new issue