From 7b72a6512018617ceddbad4aa7a003c9a04fb15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 14 Feb 2024 08:00:07 +0100 Subject: [PATCH] fixup! chore(deps): update dependency cypress-visual-regression to v5 --- cypress.config.js | 4 ++-- cypress/support/commands.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress.config.js b/cypress.config.js index b2edb1c3dff..c7fdc9d0783 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -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', @@ -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') diff --git a/cypress/support/commands.js b/cypress/support/commands.js index edcd59375c8..e041e247d95 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -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' // 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)