Skip to content

Commit

Permalink
Better error message for aria-busy timeouts
Browse files Browse the repository at this point in the history
Provide a better error message when a screenshot times out due to aria-busy tags. fixes argos-ci#14
  • Loading branch information
DavidAtImpactCubed authored Feb 22, 2023
1 parent 1a4fadf commit 27c9f5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ function waitUntilNoBusy() {
cy.document().then((document) => {
const busy = Array.from(document.querySelectorAll('[aria-busy="true"]'));
return busy.every((element) => !isVisible(element));
})
}),
{ errorMsg: 'Timeout: an element with aria-busy="true" was present' }
);
}

Expand Down

0 comments on commit 27c9f5f

Please sign in to comment.