From 804e3a34e8577f12ab72a28fd7aff6b57ea35188 Mon Sep 17 00:00:00 2001 From: Kush Trivedi <44091822+kushthedude@users.noreply.github.com> Date: Tue, 30 Mar 2021 15:23:16 +0530 Subject: [PATCH] Fixed flaky integration test (#3768) fix: detached element from dom in row_record_spec (#3768) Signed-off-by: kushthedude Co-authored-by: Florian Giroud <6267288+fgiroud@users.noreply.github.com> --- .../project/grid/viewpanel-header/rows_records.spec.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/tests/cypress/cypress/integration/project/grid/viewpanel-header/rows_records.spec.js b/main/tests/cypress/cypress/integration/project/grid/viewpanel-header/rows_records.spec.js index c64c566fb..c5734b069 100644 --- a/main/tests/cypress/cypress/integration/project/grid/viewpanel-header/rows_records.spec.js +++ b/main/tests/cypress/cypress/integration/project/grid/viewpanel-header/rows_records.spec.js @@ -135,6 +135,9 @@ describe(__filename, function () { cy.get('span[bind="modeSelectors"]').contains('records').click(); cy.get('.data-table tbody').find('tr').should('have.length', 10); + cy.get('body[ajax_in_progress="true"]'); + cy.get('body[ajax_in_progress="false"]'); + cy.get('span[bind="modeSelectors"]').contains('rows').click(); cy.get('.data-table tbody').find('tr').should('have.length', 10); });