From 5498f7c938d308293b70ade734fecdac5a55b22c Mon Sep 17 00:00:00 2001 From: Gavin Reynolds Date: Wed, 11 Oct 2023 16:44:13 +0100 Subject: [PATCH] Extend default command timeout and ensure we reset scroll to top of incident table before checking all rows Signed-off-by: Gavin Reynolds --- cypress.config.js | 2 +- cypress/support/util/common.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress.config.js b/cypress.config.js index eb24ae27..e1e3d7ce 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -9,7 +9,7 @@ module.exports = defineConfig({ video: false, viewportWidth: 1920, viewportHeight: 1080, - defaultCommandTimeout: 15000, + defaultCommandTimeout: 30000, retries: 3, e2e: { diff --git a/cypress/support/util/common.js b/cypress/support/util/common.js index ae454ee6..bfc24090 100644 --- a/cypress/support/util/common.js +++ b/cypress/support/util/common.js @@ -76,6 +76,7 @@ export const checkIncidentCellContent = (incidentId, incidentHeader, content) => export const checkIncidentCellContentAllRows = (incidentHeader, content) => { cy.wait(2000); + cy.get('.incident-table-fixed-list').scrollTo('top', { ensureScrollable: true }); cy.get('.incident-table-fixed-list > div').then(($tbody) => { const visibleIncidentCount = $tbody.find('[role="row"]').length; for (let incidentIdx = 0; incidentIdx < visibleIncidentCount; incidentIdx++) {