mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-24 00:53:05 +00:00
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:
parent
d03da6d49a
commit
a75228fd34
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
* filterless feed content via the C93 int tests; the e2e here pins the real
|
||||||
* end-to-end flow on the dev server.
|
* 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.describe('Agenda — link de import (C98)', () => {
|
||||||
test.setTimeout(90_000)
|
test.setTimeout(90_000)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue