diff --git a/web/e2e/fixtures.ts b/web/e2e/fixtures.ts index d131e80f..d5a85000 100644 --- a/web/e2e/fixtures.ts +++ b/web/e2e/fixtures.ts @@ -126,7 +126,7 @@ export default async function globalSetup(config: FullConfig) { name: "Site 1", hosts: ["site1.test"], timezone: "America/New_York", - retention_days: 30, + retention_days: 0, revenue_currency: "USD", }, }); diff --git a/web/playwright.config.ts b/web/playwright.config.ts index 787c8556..41ad9a92 100644 --- a/web/playwright.config.ts +++ b/web/playwright.config.ts @@ -30,7 +30,7 @@ set -eu psql "$SUPERMETRY_TEST_DSN" -v ON_ERROR_STOP=1 \ -c "drop schema if exists \"$SUPERMETRY_E2E_SCHEMA\" cascade" \ -c "create schema \"$SUPERMETRY_E2E_SCHEMA\"" -bun -e 'const fs=require("node:fs");const rows=JSON.parse(fs.readFileSync(process.argv[1],"utf8"));fs.writeFileSync(process.argv[2],JSON.stringify(rows.map(({id,host,timezone})=>({id,org_id:1,public_id:host,timezone,retention_days:30,allowed_hosts:[host],revenue_currency:"USD",revenue_currency_state:"configured"}))))' \ +bun -e 'const fs=require("node:fs");const rows=JSON.parse(fs.readFileSync(process.argv[1],"utf8"));fs.writeFileSync(process.argv[2],JSON.stringify(rows.map(({id,host,timezone})=>({id,org_id:1,public_id:host,timezone,retention_days:0,allowed_hosts:[host],revenue_currency:"USD",revenue_currency_state:"configured"}))))' \ ../test/golden/testdata/tiny.sites.json "$SUPERMETRY_E2E_SITES_FILE" export SUPERMETRY_DATABASE_URL="$SUPERMETRY_E2E_DSN" export SUPERMETRY_BASE_URL="$SUPERMETRY_E2E_BASE_URL"