Skip to content

Commit 3a752ca

Browse files
committed
fix:testeQuatro
1 parent c46c1c8 commit 3a752ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

playwright.config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { defineConfig, devices } from '@playwright/test';
22
import dotenv from 'dotenv';
33
import path from 'path';
4-
dotenv.config();
4+
if (!process.env.CI) {
5+
dotenv.config();
6+
}
57
//dotenv.config({ path: path.resolve(__dirname, '.env') });
68

79
/**
@@ -29,7 +31,7 @@ export default defineConfig({
2931
reporter: 'html',
3032
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
3133
use: {
32-
baseURL: 'https://www.saucedemo.com',
34+
baseURL: process.env.GOREST_BASE_URL,
3335
trace: 'on-first-retry',
3436
screenshot: 'only-on-failure',
3537
},

0 commit comments

Comments
 (0)