Skip to content

Commit

Permalink
Fix(Snapshots): Fix snapshots + improve snapshot update process (#4148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thebarda committed May 23, 2024
1 parent ad0fd66 commit ad41761
Show file tree
Hide file tree
Showing 18 changed files with 2 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion centreon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test:watch": "pnpm test --watch",
"test:coverage": "jest --coverage",
"cypress:cli": "./cypress/scripts/cypress-cli.sh",
"cypress:cli:updateSnapshot": "./cypress/scripts/cypress-cli.sh --env updateSnapshots=true",
"cypress:cli:updateSnapshot": "cypress run --component --browser=chrome --env updateSnapshots=true",
"cypress:ui": "cypress open --component --browser=chrome",
"cypress:run": "cypress run --component --browser=chrome",
"cypress:run:coverage": "cypress run --component --browser=chrome --env codeCoverageTasksRegistered=true",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const enableVisualTesting = (cypressFolder = 'cypress'): void => {
capture: 'viewport',
customDiffConfig: { threshold: 0.01 },
customSnapshotsDir: `${cypressFolder}/visual-testing-snapshots`,
failureThreshold: 0.07,
failureThreshold: Cypress.env('updateSnapshots') === true ? 0 : 0.07,
failureThresholdType: 'percent'
});
};
Expand Down

0 comments on commit ad41761

Please sign in to comment.