diff --git a/main/tests/cypress/cypress/integration/project/grid/column/reconcile/reconcile.spec.js b/main/tests/cypress/cypress/integration/project/grid/column/reconcile/reconcile.spec.js index a1105a318..fcb1912ed 100644 --- a/main/tests/cypress/cypress/integration/project/grid/column/reconcile/reconcile.spec.js +++ b/main/tests/cypress/cypress/integration/project/grid/column/reconcile/reconcile.spec.js @@ -89,7 +89,7 @@ describe('Base reconciliation tests', () => { .siblings('input') .uncheck(); cy.get('.dialog-container button').contains('Start Reconciling...').click(); - cy.assertNotificationContainingText('Reconcile cells in column species'); + cy.wait(10000); // eslint-disable-line cy.assertColumnIsReconciled('species'); // "Choose new match" appear when there is a match, if it's not there it means nothing is matched @@ -110,7 +110,7 @@ describe('Base reconciliation tests', () => { .siblings('input') .check(); cy.get('.dialog-container button').contains('Start Reconciling...').click(); - cy.assertNotificationContainingText('Reconcile cells in column species'); + cy.wait(10000); // eslint-disable-line cy.assertColumnIsReconciled('species'); // 4 rows should have been automatched @@ -130,6 +130,7 @@ describe('Base reconciliation tests', () => { cy.get('.recon-dialog-service-panel.recon-dialog-standard-service-panel').should('be.visible'); cy.get('.dialog-container input[bind="maxCandidates"]').type(2); cy.get('.dialog-container button').contains('Start Reconciling...').click(); + cy.wait(10000); // eslint-disable-line cy.assertColumnIsReconciled('species'); cy.get('.data-table-cell-content .data-table-recon-topic').should( 'have.length', diff --git a/main/tests/cypress/cypress/support/commands.js b/main/tests/cypress/cypress/support/commands.js index 4273fd430..10112868d 100644 --- a/main/tests/cypress/cypress/support/commands.js +++ b/main/tests/cypress/cypress/support/commands.js @@ -349,7 +349,7 @@ Cypress.Commands.add( ); Cypress.Commands.add('assertNotificationContainingText', (text) => { - cy.get('#notification-container'); + cy.get('#notification-container').should('be.visible'); cy.get('#notification').should('be.visible').should('to.contain', text); });