diff --git a/.env.template b/.env.template index 15db539..62541f1 100644 --- a/.env.template +++ b/.env.template @@ -1,3 +1,4 @@ TRACETEST_API_TOKEN= POKESHOP_DEMO_URL=http://localhost:8081 TRACETEST_AGENT_API_KEY= +TRACETEST_ENVIRONMENT_ID= \ No newline at end of file diff --git a/playwright/home.spec.ts b/playwright/home.spec.ts index 53526bd..c094a09 100644 --- a/playwright/home.spec.ts +++ b/playwright/home.spec.ts @@ -1,7 +1,7 @@ import { test, expect } from '@playwright/test'; import Tracetest, { Types } from '@tracetest/playwright'; -const { TRACETEST_API_TOKEN = '', TRACETEST_SERVER_URL = 'https://app.tracetest.io' } = process.env; +const { TRACETEST_API_TOKEN = '', TRACETEST_SERVER_URL = 'https://app.tracetest.io', TRACETEST_ENVIRONMENT_ID = '' } = process.env; let tracetest: Types.TracetestPlaywright | undefined = undefined; @@ -30,7 +30,12 @@ spec: `; test.beforeAll(async () => { - tracetest = await Tracetest({ apiToken: TRACETEST_API_TOKEN, serverUrl: TRACETEST_SERVER_URL, serverPath: '' }); + tracetest = await Tracetest({ + apiToken: TRACETEST_API_TOKEN, + serverUrl: TRACETEST_SERVER_URL, + serverPath: '', + environmentId: TRACETEST_ENVIRONMENT_ID, + }); await tracetest.setOptions({ 'Playwright: imports a pokemon': {