From 1e37f0d4dd0d263f35945f930be2037526284717 Mon Sep 17 00:00:00 2001 From: Roland Date: Tue, 10 Mar 2026 20:26:00 -0600 Subject: [PATCH] Skipping Caddy tests on CICD. --- app/cypress.config.js | 3 +++ app/cypress/e2e/caddy-media.cy.js | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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', () => {