feat(supabase): owner trial served on the LAN address, sandbox kept on loopback

This commit is contained in:
bchanot committed 2026-11-04 22:36:50 +01:00
1 parent a69eba569b
commit d74c54ed05
6 files changed
+260 -21

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
/**
* `playwright test -c e2e/playwright.lan.config.ts` (docs/development/V1-2-6_OWNER_TRIAL.md):
* the owner's trial reached through its LAN origin, which is a non-secure context like a
* phone's browser. It needs a running `pnpm db:sandbox trial` and a trial account; the
* page may reach that origin only. No trace, no report: they would hold the session tokens
* and the password. Run by hand, never part of check:all.
*/
import { defineConfig } from '@playwright/test'
import type { GuardOptions } from './support/browser'
const ORIGIN = process.env.TRIAL_ORIGIN ?? 'http://192.168.1.100:5193'
export default defineConfig<GuardOptions>({
testDir: './lan',
outputDir: './test-results/lan',
forbidOnly: true,
retries: 0,
expect: { timeout: 15_000 },
reporter: [['list']],
use: {
baseURL: ORIGIN,
locale: 'fr-FR',
allowedOrigins: [ORIGIN],
trace: 'off',
screenshot: 'off',
viewport: { width: 1280, height: 900 },
},
})