test(C98): detect CI=true (GitHub Actions) for the prod-mode e2e skip

GitHub Actions injects CI=true (not CI=1), so the full feed flow ran on
the prod build in CI and the create failed with
'NEXT_PUBLIC_SITE_URL precisa usar HTTPS em produção.' — the canonical
fail-closed rejecting the localhost test env. Accept '1' and 'true'.
This commit is contained in:
Francisco Solla 2026-08-09 16:53:46 -03:00
parent d03da6d49a
commit a75228fd34

View file

@ -11,7 +11,7 @@ import { campaignPageChrome, expect, test } from './fixtures/campaignE2EFixtures
* filterless feed content via the C93 int tests; the e2e here pins the real
* end-to-end flow on the dev server.
*/
const isProdMode = process.env.E2E_PROD === '1' || process.env.CI === '1'
const isProdMode = ['1', 'true'].includes(process.env.E2E_PROD ?? '') || ['1', 'true'].includes(process.env.CI ?? '')
test.describe('Agenda — link de import (C98)', () => {
test.setTimeout(90_000)