update to cypress 10

Signed-off-by: MALIN WIDÈN <malwi130@student.liu.se>
This commit is contained in:
MALIN WIDÈN
2022-12-07 14:18:41 +01:00
committed by Fredrik Adelöw
parent 7e9536ada8
commit f08ee791f3
3 changed files with 50 additions and 1 deletions
+16
View File
@@ -21,9 +21,25 @@ module.exports = defineConfig({
setupNodeEvents(on, config) {
initPlugin(on, config);
},
<<<<<<< HEAD
excludeSpecPattern: ['**/__snapshots__/*', '**/__image_snapshots__/*'],
},
=======
},
excludeSpecPattern: ['**/__snapshots__/*', '**/__image_snapshots__/*'],
env: {
mkDocsBaseUrl: 'http://localhost:8000',
backstageBaseUrl: 'http://localhost:3000',
'cypress-plugin-snapshots': {
autoCleanUp: false,
imageConfig: {
resizeDevicePixelRatio: true,
threshold: 0.01,
},
},
},
>>>>>>> 533a1a2db2 (update to cypress 10)
viewportWidth: 1920,
viewportHeight: 1080,
includeShadowDom: true,
@@ -0,0 +1,30 @@
/*
* Copyright 2022 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// https://on.cypress.io/plugins-guide
// ***********************************************************
// This function is called when a project is opened or re-opened (e.g. due to
// the project's config changing)
require('@frsource/cypress-plugin-visual-regression-diff/plugin');