Skip to content

Commit 71c65a3

Browse files
dependabot[bot]skjnldsv
authored andcommitted
Bump cypress from 9.7.0 to 12.3.0
Bumps [cypress](https://github.com/cypress-io/cypress) from 9.7.0 to 12.3.0. - [Release notes](https://github.com/cypress-io/cypress/releases) - [Changelog](https://github.com/cypress-io/cypress/blob/develop/CHANGELOG.md) - [Commits](cypress-io/cypress@v9.7.0...v12.3.0) --- updated-dependencies: - dependency-name: cypress dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
1 parent 89b7437 commit 71c65a3

File tree

111 files changed

+19320
-25010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+19320
-25010
lines changed

cypress.config.ts

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import { defineConfig } from 'cypress'
2+
import { DefinePlugin } from 'webpack'
3+
import getCompareSnapshotsPlugin from 'cypress-visual-regression/dist/plugin'
4+
import path from 'path'
5+
import webpackConfig from '@nextcloud/webpack-vue-config'
6+
import webpackRules from '@nextcloud/webpack-vue-config/rules'
7+
8+
import { loadTranslations } from './resources/translations'
9+
10+
const SCOPE_VERSION = Date.now()
11+
webpackRules.RULE_SCSS.use.push({
12+
loader: 'sass-loader',
13+
options: {
14+
additionalData: `@use 'sass:math'; $scope_version:${SCOPE_VERSION}; @import 'variables'; @import 'material-icons';`,
15+
/**
16+
* ! needed for resolve-url-loader
17+
*/
18+
sourceMap: true,
19+
sassOptions: {
20+
sourceMapContents: false,
21+
includePaths: [
22+
path.resolve(__dirname, './src/assets'),
23+
],
24+
},
25+
},
26+
})
27+
28+
webpackConfig.module.rules = Object.values(webpackRules)
29+
30+
export default defineConfig({
31+
projectId: '3paxvy',
32+
viewportWidth: 1920,
33+
viewportHeight: 1080,
34+
defaultCommandTimeout: 6000,
35+
36+
env: {
37+
failSilently: false,
38+
type: 'actual',
39+
},
40+
41+
screenshotsFolder: 'cypress/snapshots/actual',
42+
trashAssetsBeforeRuns: true,
43+
44+
component: {
45+
setupNodeEvents(on, config) {
46+
getCompareSnapshotsPlugin(on, config)
47+
48+
// Disable spell checking to prevent rendering differences
49+
on('before:browser:launch', (browser, launchOptions) => {
50+
if (browser.family === 'chromium' && browser.name !== 'electron') {
51+
launchOptions.preferences.default['browser.enable_spellchecking'] = false
52+
return launchOptions
53+
}
54+
55+
if (browser.family === 'firefox') {
56+
launchOptions.preferences['layout.spellcheckDefault'] = 0
57+
return launchOptions
58+
}
59+
60+
if (browser.name === 'electron') {
61+
launchOptions.preferences.spellcheck = false
62+
return launchOptions
63+
}
64+
})
65+
66+
},
67+
68+
devServer: {
69+
framework: 'vue',
70+
bundler: 'webpack',
71+
webpackConfig: async () => {
72+
const translations = await loadTranslations(path.resolve(__dirname, './l10n'))
73+
webpackConfig.plugins.push(new DefinePlugin({
74+
PRODUCTION: false,
75+
SCOPE_VERSION,
76+
TRANSLATIONS: JSON.stringify(translations),
77+
}))
78+
79+
return webpackConfig
80+
},
81+
},
82+
},
83+
})

cypress.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

cypress/plugins/index.js

Lines changed: 0 additions & 60 deletions
This file was deleted.

cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.visual.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_image-secondary_button-editable_false-base.png renamed to cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.cy.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_image-secondary_button-editable_false-base.png

File renamed without changes.

cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.visual.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_image-secondary_button-editable_true-base.png renamed to cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.cy.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_image-secondary_button-editable_true-base.png

File renamed without changes.

cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.visual.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_image-secondary_none-editable_false-base.png renamed to cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.cy.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_image-secondary_none-editable_false-base.png

File renamed without changes.

cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.visual.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_image-secondary_none-editable_true-base.png renamed to cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.cy.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_image-secondary_none-editable_true-base.png

File renamed without changes.

cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.visual.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_none-secondary_button-editable_false-base.png renamed to cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.cy.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_none-secondary_button-editable_false-base.png

File renamed without changes.

cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.visual.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_none-secondary_button-editable_true-base.png renamed to cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.cy.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_none-secondary_button-editable_true-base.png

File renamed without changes.

cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.visual.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_none-secondary_none-editable_false-base.png renamed to cypress/snapshots/base/components/NcAppSidebar/NcAppSidebar-compact.cy.js/NcAppSidebar.vue-subtitle_null-starred_false-compact_true-header_none-secondary_none-editable_false-base.png

File renamed without changes.

0 commit comments

Comments
 (0)