Skip to content

Commit

Permalink
really add something
Browse files Browse the repository at this point in the history
  • Loading branch information
andtos90 committed Feb 26, 2024
1 parent 9bca294 commit 57bb193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
File renamed without changes.
5 changes: 4 additions & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { defineConfig, devices } from "@playwright/test";
import dotenv from "dotenv";

const PORT = process.env.PORT || 3000;
const BASE_URL = process.env.BASE_URL || `http://localhost:${PORT}`;

/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
Expand All @@ -25,7 +28,7 @@ export default defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://localhost:3000",
baseURL: BASE_URL,

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on-first-retry",
Expand Down

0 comments on commit 57bb193

Please sign in to comment.