Skip to content

Commit

Permalink
BACKLOG-23326: Increase the default statusMatchCount in waitUntilSAMS…
Browse files Browse the repository at this point in the history
…tatus from 1 to 3 (#92)
  • Loading branch information
Fgerthoffert authored Oct 23, 2024
1 parent 7e3a088 commit fcfb291
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jahia/cypress",
"version": "3.29.0",
"version": "3.30.0",
"scripts": {
"build": "tsc",
"lint": "eslint src -c .eslintrc.json --ext .ts"
4 changes: 2 additions & 2 deletions src/utils/SAMHelper.ts
Original file line number Diff line number Diff line change
@@ -28,9 +28,9 @@ export const healthCheck = (severity = 'MEDIUM', probeHealthFilter = 'GREEN'): C
* @param probeHealthFilter the filter for the health check probes, default is GREEN
* @param timeout the timeout in milliseconds, default is 60000
* @param interval the interval in milliseconds, default is 500
* @param statusMatchCount the number of consecutive status matches before the waitUntil resolves, default is 1
* @param statusMatchCount the number of consecutive status matches before the waitUntil resolves, default is 3
*/
export const waitUntilSAMStatus = ({expectedHealth, severity = 'MEDIUM', probeHealthFilter = 'GREEN', timeout = 60000, interval = 500, statusMatchCount = 1}) : void => {
export const waitUntilSAMStatus = ({expectedHealth, severity = 'MEDIUM', probeHealthFilter = 'GREEN', timeout = 60000, interval = 500, statusMatchCount = 3}) : void => {
let statusCount = 0;
let lastGraphqlResponse = {};
cy.waitUntil(() =>

0 comments on commit fcfb291

Please sign in to comment.