Skip to content

Commit

Permalink
Extend default command timeout and ensure we reset scroll to top of i…
Browse files Browse the repository at this point in the history
…ncident table before checking all rows

Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Oct 11, 2023
1 parent 9bd186a commit 5498f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = defineConfig({
video: false,
viewportWidth: 1920,
viewportHeight: 1080,
defaultCommandTimeout: 15000,
defaultCommandTimeout: 30000,
retries: 3,

e2e: {
Expand Down
1 change: 1 addition & 0 deletions cypress/support/util/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 5498f7c

Please sign in to comment.