diff --git a/cypress/e2e/cardFeatures.js b/cypress/e2e/cardFeatures.js index b412e6ed3..5cceda1cf 100644 --- a/cypress/e2e/cardFeatures.js +++ b/cypress/e2e/cardFeatures.js @@ -302,6 +302,9 @@ describe('Card', function () { .first().click() cy.get(`.card:contains("${newCardTitle}")`).should('be.visible').click() + // Add delay to ensure the events are bound + cy.wait(1000) + cy.get('#app-sidebar-vue [data-test="tag-selector"] .vs__dropdown-toggle').should('be.visible').click() cy.get('.vs__dropdown-menu .tag:contains("Action needed")').should('be.visible').click() cy.get('.vs__dropdown-menu .tag:contains("Later")').should('be.visible').click() diff --git a/cypress/support/commands.js b/cypress/support/commands.js index f06c2340d..12875bb44 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -102,7 +102,11 @@ Cypress.Commands.add('shareBoardWithUi', (query, userId=query) => { cy.intercept({ method: 'GET', url: `**/ocs/v2.php/apps/files_sharing/api/v1/sharees?search=${query}*` }).as('fetchRecipients') cy.get('[aria-label="Open details"]').click() cy.get('.app-sidebar').should('be.visible') - cy.get('.select input').type(`${query}`) + + // Add delay to ensure the events are bound + cy.wait(1000) + + cy.get('.select input').click().type(`${query}`) cy.wait('@fetchRecipients', { timeout: 7000 }) cy.get('.vs__dropdown-menu .option').first().contains(query)