-
Notifications
You must be signed in to change notification settings - Fork 178
Update Cypress configuration and dependencies for improved testing #1251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
0866336
c7b6689
80dcaca
3c0e970
49f5827
3ef824d
9f0fde3
a3a1290
1d916af
84438ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,42 @@ | ||||||||||||||||||||
| const { defineConfig } = require('cypress') | ||||||||||||||||||||
|
|
||||||||||||||||||||
| module.exports = defineConfig({ | ||||||||||||||||||||
| chromeWebSecurity: false, | ||||||||||||||||||||
| pageLoadTimeout: 100000, | ||||||||||||||||||||
| defaultCommandTimeout: 100000, | ||||||||||||||||||||
| screenshotsFolder: 'cypress/screenshots', | ||||||||||||||||||||
| screenshotOnRunFailure: true, | ||||||||||||||||||||
| reporter: 'cypress-multi-reporters', | ||||||||||||||||||||
| reporterOptions: { | ||||||||||||||||||||
| inlineAssets: true, | ||||||||||||||||||||
| reporterEnabled: 'cypress-mochawesome-reporter, mocha-junit-reporter', | ||||||||||||||||||||
| mochaJunitReporterReporterOptions: { | ||||||||||||||||||||
| mochaFile: 'cypress/reports/junit/results-[hash].xml', | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| cypressMochawesomeReporterReporterOptions: { | ||||||||||||||||||||
| charts: true, | ||||||||||||||||||||
| reportPageTitle: 'custom-title', | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| }, | ||||||||||||||||||||
|
Comment on lines
+10
to
+20
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When using 🐛 Proposed fix reporterOptions: {
- inlineAssets: true,
reporterEnabled: 'cypress-mochawesome-reporter, mocha-junit-reporter',
mochaJunitReporterReporterOptions: {
mochaFile: 'cypress/reports/junit/results-[hash].xml',
},
cypressMochawesomeReporterReporterOptions: {
charts: true,
reportPageTitle: 'custom-title',
+ inlineAssets: true,
},
},🤖 Prompt for AI Agents |
||||||||||||||||||||
| video: false, | ||||||||||||||||||||
| scrollBehavior: 'nearest', | ||||||||||||||||||||
| retries: { | ||||||||||||||||||||
| runMode: 2, | ||||||||||||||||||||
| openMode: 0, | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| env: { | ||||||||||||||||||||
| largeTimeout: 100000, | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| e2e: { | ||||||||||||||||||||
| setupNodeEvents(on, config) { | ||||||||||||||||||||
| return require('./cypress/plugins/index.js')(on, config) | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}', | ||||||||||||||||||||
| excludeSpecPattern: [ | ||||||||||||||||||||
| '**/externalDevPortals/**/*.cy.js', | ||||||||||||||||||||
| '**/06-solace-broker-integration.cy.js', | ||||||||||||||||||||
| '**/*.cy.skip.js', | ||||||||||||||||||||
| ], | ||||||||||||||||||||
|
Comment on lines
+35
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The ♻️ Proposed fix excludeSpecPattern: [
'**/externalDevPortals/**/*.cy.js',
'**/06-solace-broker-integration.cy.js',
- '**/*.cy.skip.js',
],📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
| baseUrl: 'https://localhost:9443', | ||||||||||||||||||||
| }, | ||||||||||||||||||||
| }) | ||||||||||||||||||||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing copyright header. The file should include the Apache 2.0 license header consistent with other files in the codebase (see tests/package.json or test files for reference).