From 3391a40b779beae591727399e26f07b2366fefa9 Mon Sep 17 00:00:00 2001 From: Julius Knorr Date: Wed, 18 Dec 2024 22:59:42 +0100 Subject: [PATCH] tests(cypress): Try sleep to avoid electron crash in modal Signed-off-by: Julius Knorr --- cypress/e2e/cardFeatures.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/cardFeatures.js b/cypress/e2e/cardFeatures.js index 366a6bd7b..74a3a7226 100644 --- a/cypress/e2e/cardFeatures.js +++ b/cypress/e2e/cardFeatures.js @@ -63,8 +63,7 @@ describe('Card', function () { }) }) - // TODO reintroduce this test - it.skip('Create card from overview', function () { + it('Create card from overview', function () { cy.visit(`/apps/deck/#/`) const newCardTitle = 'Test create from overview' cy.intercept({ method: 'POST', url: '**/apps/deck/cards' }).as('save') @@ -72,6 +71,10 @@ describe('Card', function () { cy.get('.button-vue[aria-label*="Add card"]') .first().click() + + // Somehow this avoids the electron crash + cy.wait(2000) + cy.get('.modal-mask.card-selector .card-title').should('be.visible').click().type(newCardTitle) cy.get('.modal-mask.card-selector .multiselect-board').should('be.visible').click() cy.get('.vs__dropdown-menu [data-cy="board-select-title"]:contains("' + boardData.title + '")').should('be.visible').click()