diff --git a/app/cypress.config.js b/app/cypress.config.js index dc8bf255..abda981c 100644 --- a/app/cypress.config.js +++ b/app/cypress.config.js @@ -8,6 +8,9 @@ module.exports = defineConfig({ supportFile: 'cypress/support/e2e.js', video: process.env.CI ? true : false, screenshotOnRunFailure: true, + env: { + CI: !!process.env.CI, + }, }, component: { devServer: { diff --git a/app/cypress/e2e/caddy-media.cy.js b/app/cypress/e2e/caddy-media.cy.js index 0b48e586..1cbef64a 100644 --- a/app/cypress/e2e/caddy-media.cy.js +++ b/app/cypress/e2e/caddy-media.cy.js @@ -1,4 +1,5 @@ -describe('Caddy Media Serving Tests', () => { +// These tests require Caddy (not available in CI where only React dev server runs) +(Cypress.env('CI') ? describe.skip : describe)('Caddy Media Serving Tests', () => { describe('/media/ Content-Disposition inline', () => { it('sets Content-Disposition inline on /media/ file requests', () => {