-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcypress.config.js
More file actions
30 lines (23 loc) · 864 Bytes
/
Copy pathcypress.config.js
File metadata and controls
30 lines (23 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const { defineConfig } = require('cypress')
module.exports = defineConfig({
e2e: {
// Each intern sets this to their own dev portal URL.
// Example: 'https://myportal.dev.talentlms.com'
baseUrl: 'https://your-subdomain.dev.talentlms.com',
viewportWidth: 1280,
viewportHeight: 720,
// Run tests in Chrome by default.
browser: 'chrome',
// Keep test runs clean – disable video by default.
// Enable it if you want to record a run for review.
video: false,
// Always capture a screenshot when a test fails.
// Great for debugging – Cypress saves it to cypress/screenshots/.
screenshotOnRunFailure: true,
// Where Cypress looks for test files.
specPattern: 'cypress/e2e/**/*.cy.js',
setupNodeEvents(on, config) {
// Add custom Node-level event listeners here if needed.
},
},
})