Skip to content

Commit cd19b11

Browse files
committed
fix: stabilize cardfeatures cypress test
Signed-off-by: grnd-alt <github@belakkaf.net>
1 parent 9f2c188 commit cd19b11

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

cypress/e2e/cardFeatures.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('Card', function () {
8484
cy.get('.modal-mask.card-selector .multiselect-list').should('be.visible').click()
8585
cy.get('.vs__dropdown-menu span[title="TestList"]').should('be.visible').click()
8686

87-
cy.get('.modal-mask.card-selector button.button-vue--vue-primary').should('be.visible').click()
87+
cy.get('.modal-mask.card-selector button.button-vue--primary').contains('Create card').should('be.visible').click()
8888
cy.wait('@save', { timeout: 7000 })
8989

9090
cy.reload()
@@ -302,8 +302,10 @@ describe('Card', function () {
302302
.first().click()
303303
cy.get(`.card:contains("${newCardTitle}")`).should('be.visible').click()
304304

305-
cy.get('#app-sidebar-vue [data-test="tag-selector"] .vs__dropdown-toggle').should('be.visible').click()
305+
cy.get('#app-sidebar-vue [data-test="tag-selector"] .vs__dropdown-toggle .vs__actions').should('be.visible').click()
306306
cy.get('.vs__dropdown-menu .tag:contains("Action needed")').should('be.visible').click()
307+
cy.get('.vs__dropdown-menu .tag:contains("Later")').should('not.exist')
308+
cy.get('#app-sidebar-vue [data-test="tag-selector"] .vs__dropdown-toggle .vs__actions').should('be.visible').click()
307309
cy.get('.vs__dropdown-menu .tag:contains("Later")').should('be.visible').click()
308310

309311
cy.get('.vs__selected .tag:contains("Action needed")').should('be.visible')

cypress/support/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Cypress.Commands.add('createExampleBoard', ({ user, board }) => {
9393
})
9494

9595
Cypress.Commands.add('getNavigationEntry', (boardTitle) => {
96-
return cy.get('.app-navigation-entry-wrapper[icon=icon-deck]')
96+
return cy.get('#deck-navigation-all')
9797
.find('ul.app-navigation-entry__children .app-navigation-entry:contains(' + boardTitle + ')')
9898
.find('a.app-navigation-entry-link')
9999
})

src/components/navigation/AppNavigationBoardCategory.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ export default {
3131
type: String,
3232
default: '',
3333
},
34-
id: {
35-
type: String,
36-
required: true,
37-
},
3834
text: {
3935
type: String,
4036
required: true,

src/store/card.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ export default {
343343
commit('removeUserFromCard', user)
344344
},
345345
async addLabel({ commit }, data) {
346-
alert('hello world')
347346
await apiClient.assignLabelToCard(data)
348347
commit('updateCardProperty', { property: 'labels', card: data.card })
349348
},

0 commit comments

Comments
 (0)