Skip to content

Commit

Permalink
fixup! chore(deps): update dependency cypress-visual-regression to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr committed Feb 14, 2024
1 parent f5f5ac7 commit 7b72a65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cypress.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { defineConfig } = require('cypress')
const cypressSplit = require('cypress-split')
const getCompareSnapshotsPlugin = require('cypress-visual-regression/dist/plugin.js')
const { configureVisualRegression } = require('cypress-visual-regression/dist/plugin')

module.exports = defineConfig({
projectId: 'hx9gqy',
Expand All @@ -17,7 +17,7 @@ module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
cypressSplit(on, config)
getCompareSnapshotsPlugin(on, config)
configureVisualRegression(on, config)

const browserify = require('@cypress/browserify-preprocessor')
const webpack = require('@cypress/webpack-preprocessor')
Expand Down
4 changes: 2 additions & 2 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@

import axios from '@nextcloud/axios'
import { addCommands } from '@nextcloud/cypress'
import compareSnapshotCommand from 'cypress-visual-regression/dist/command.js'
import { addCompareSnapshotCommand } from 'cypress-visual-regression/dist/command'

Check failure on line 25 in cypress/support/commands.js

View workflow job for this annotation

GitHub Actions / NPM lint

"cypress-visual-regression/dist/command" is not found

// eslint-disable-next-line no-unused-vars,n/no-extraneous-import
import regeneratorRuntime from 'regenerator-runtime'

compareSnapshotCommand()
addCompareSnapshotCommand()

const url = Cypress.config('baseUrl').replace(/\/index.php\/?$/g, '')
Cypress.env('baseUrl', url)
Expand Down

0 comments on commit 7b72a65

Please sign in to comment.