We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c46c1c8 commit 3a752caCopy full SHA for 3a752ca
playwright.config.ts
@@ -1,7 +1,9 @@
1
import { defineConfig, devices } from '@playwright/test';
2
import dotenv from 'dotenv';
3
import path from 'path';
4
-dotenv.config();
+if (!process.env.CI) {
5
+ dotenv.config();
6
+}
7
//dotenv.config({ path: path.resolve(__dirname, '.env') });
8
9
/**
@@ -29,7 +31,7 @@ export default defineConfig({
29
31
reporter: 'html',
30
32
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
33
use: {
- baseURL: 'https://www.saucedemo.com',
34
+ baseURL: process.env.GOREST_BASE_URL,
35
trace: 'on-first-retry',
36
screenshot: 'only-on-failure',
37
},
0 commit comments