diff --git a/docker-compose.yml b/docker-compose.yml index f907d0fbe..f78e91799 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,15 +19,13 @@ services: build: dockerfile: ./tests/Dockerfile ports: - - 9323:9323 + - '9323:9323' ipc: host - expose: - - 9323 volumes: - ./tests:/work/tests - ./test-results:/work/test-results - ./playwright-report:/work/playwright-report - entrypoint: "npx playwright test --config=playwright-ci.config.ts" + entrypoint: "npx playwright test --config=playwright-docker.config.ts" depends_on: deephaven-plugins: condition: service_healthy @@ -35,7 +33,7 @@ services: update-snapshots: extends: service: e2e-tests - entrypoint: 'npx playwright test --config=playwright-ci.config.ts --update-snapshots' + entrypoint: 'npx playwright test --config=playwright-docker.config.ts --update-snapshots' depends_on: deephaven-plugins: condition: service_healthy diff --git a/playwright-ci.config.ts b/playwright-docker.config.ts similarity index 78% rename from playwright-ci.config.ts rename to playwright-docker.config.ts index ddb0c7923..1151d0fe5 100644 --- a/playwright-ci.config.ts +++ b/playwright-docker.config.ts @@ -7,7 +7,7 @@ const config: PlaywrightTestConfig = { ...DefaultConfig.use, baseURL: 'http://deephaven-plugins:10000/ide/', }, - reporter: [['github'], ['html']], + reporter: process.env.CI ? [['github'], ['html']] : DefaultConfig.reporter, }; export default config; diff --git a/tests/Dockerfile b/tests/Dockerfile index 89a27c5c4..00596c498 100644 --- a/tests/Dockerfile +++ b/tests/Dockerfile @@ -6,4 +6,4 @@ WORKDIR /work/ RUN npm install @playwright/test@1.41.2 COPY playwright.config.ts . -COPY playwright-ci.config.ts . +COPY playwright-docker.config.ts .