Skip to content

Commit

Permalink
examples(pw): remove redundant config
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanrahic committed Oct 7, 2024
1 parent fd0e737 commit 139fa7b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ TRACETEST_ENVIRONMENT_ID="env"

AVAILABILITY_HOST="availability"

REACT_URL="http://host.docker.internal:3000/"
REACT_APP_APP_HOST="host.docker.internal"
REACT_APP_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT="http://host.docker.internal:4318/v1/traces"

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig, devices } from '@playwright/test';
import { config } from 'dotenv';
config();
config({ path: '../.env'});

const baseURL = process.env.REACT_APP_URL || 'http://localhost:3000';
const baseURL = process.env.REACT_URL || 'http://localhost:3000';

/**
* See https://playwright.dev/docs/test-configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- attr:books.list.count = 3
- selector: span[tracetest.span.type="http" name="GET /availability/:bookId" http.method="GET"]
assertions:
- attr:http.host = "availability:8080"
- attr:http.host = "availability:8082"
- selector: span[tracetest.span.type="general" name="Availablity check"]
assertions:
- attr:isAvailable = "true"

0 comments on commit 139fa7b

Please sign in to comment.