Skip to content

Commit

Permalink
Upgrade: Bump cypress-visual-regression from 3.0.0 to 5.0.0
Browse files Browse the repository at this point in the history
Bumps [cypress-visual-regression](https://github.com/cypress-visual-regression/cypress-visual-regression) from 3.0.0 to 5.0.0.
- [Changelog](https://github.com/cypress-visual-regression/cypress-visual-regression/blob/master/CHANGELOG.md)
- [Commits](https://github.com/cypress-visual-regression/cypress-visual-regression/commits)

---
updated-dependencies:
- dependency-name: cypress-visual-regression
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and susnux committed May 11, 2024
1 parent d543764 commit 62dbf42
Show file tree
Hide file tree
Showing 4 changed files with 407 additions and 18 deletions.
9 changes: 5 additions & 4 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { defineConfig } from 'cypress'

import vitePreprocessor from 'cypress-vite'
import getCompareSnapshotsPlugin from 'cypress-visual-regression/dist/plugin'
import { configureVisualRegression } from 'cypress-visual-regression/dist/plugin'

export default defineConfig({
projectId: '5bsgwk',
Expand All @@ -32,9 +32,10 @@ export default defineConfig({

// Visual regression testing
env: {
failSilently: false,
type: 'actual',
visualRegressionType: 'regression',
visualRegressionFailSilently: false,
},

screenshotsFolder: 'cypress/snapshots/actual',
trashAssetsBeforeRuns: true,

Expand All @@ -48,7 +49,7 @@ export default defineConfig({
on('file:preprocessor', vitePreprocessor({ configFile: false }))

// Enable the snapshot compare plugin
getCompareSnapshotsPlugin(on, config)
configureVisualRegression(on)

// Disable spell checking to prevent rendering differences
on('before:browser:launch', (browser, launchOptions) => {
Expand Down
5 changes: 4 additions & 1 deletion cypress/support/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
*/
/* eslint-disable n/no-unpublished-import */
import { addCommands } from '@nextcloud/cypress'
import { addCompareSnapshotCommand } from 'cypress-visual-regression/dist/command'

// Add custom commands
import 'cypress-wait-until'

// Add custom commands
addCommands()
addCompareSnapshotCommand()
Loading

0 comments on commit 62dbf42

Please sign in to comment.