Skip to content

Commit

Permalink
Merge pull request #1728 from nextcloud/dependabot/npm_and_yarn/cypre…
Browse files Browse the repository at this point in the history
…ss-visual-regression-5.0.2
  • Loading branch information
dependabot[bot] authored Aug 26, 2024
2 parents 4bbb79c + 816f274 commit bf375f5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 512 deletions.
4 changes: 0 additions & 4 deletions cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
import { defineConfig } from 'cypress'

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

export default defineConfig({
projectId: '5bsgwk',
Expand Down Expand Up @@ -47,9 +46,6 @@ export default defineConfig({
// Fix browserslist extend https://github.com/cypress-io/cypress/issues/2983#issuecomment-570616682
on('file:preprocessor', vitePreprocessor({ configFile: false }))

// Enable the snapshot compare plugin
configureVisualRegression(on)

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

import 'cypress-wait-until'

import '@testing-library/cypress/add-commands'

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

0 comments on commit bf375f5

Please sign in to comment.