Skip to content

Commit d4bde9b

Browse files
committed
fix: stabilize cypress
Signed-off-by: grnd-alt <github@belakkaf.net>
1 parent 1d7bf30 commit d4bde9b

7 files changed

Lines changed: 11 additions & 14 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/e2e/deckDashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('Deck dashboard', function() {
2727

2828
const defaultBoard = 'Welcome to Nextcloud Deck!'
2929

30-
cy.get('.app-navigation-entry-wrapper[icon=icon-deck]')
30+
cy.get('#deck-navigation-all')
3131
.find('ul.app-navigation-entry__children .app-navigation-entry:contains(' + defaultBoard + ')')
3232
.first()
3333
.contains(defaultBoard)

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
})

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@nextcloud/moment": "^1.3.2",
4444
"@nextcloud/notify_push": "^1.3.0",
4545
"@nextcloud/router": "^3.0.1",
46-
"@nextcloud/vue": "^9.0.0-alpha.7",
46+
"@nextcloud/vue": "^9.0.0-rc.3",
4747
"@vue/compiler-sfc": "^3.5.13",
4848
"@vue/vue3-jest": "^29.2.6",
4949
"@vueuse/core": "^13.1.0",

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)