File tree Expand file tree Collapse file tree 4 files changed +3
-10
lines changed
src/test/java/org/javadominicano Expand file tree Collapse file tree 4 files changed +3
-10
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build-and-test :
11
11
runs-on : ubuntu-latest
12
+ env :
13
+ HEADLESS : true
12
14
13
15
steps :
14
16
- name : Checkout
Original file line number Diff line number Diff line change 107
107
<scope >test</scope >
108
108
</dependency >
109
109
110
- <dependency >
111
- <groupId >io.github.cdimascio</groupId >
112
- <artifactId >dotenv-java</artifactId >
113
- <version >3.0.0</version >
114
- </dependency >
115
-
116
110
<dependency >
117
111
<groupId >com.microsoft.playwright</groupId >
118
112
<artifactId >playwright</artifactId >
Original file line number Diff line number Diff line change 1
1
package org .javadominicano ;
2
2
3
3
import com .microsoft .playwright .*;
4
- import io .github .cdimascio .dotenv .Dotenv ;
5
4
import org .junit .jupiter .api .AfterAll ;
6
5
import org .junit .jupiter .api .AfterEach ;
7
6
import org .junit .jupiter .api .BeforeAll ;
@@ -23,10 +22,9 @@ public static void beforeAll() {
23
22
playwright = Playwright .create ();
24
23
BrowserType browserType = playwright .chromium ();
25
24
26
- Dotenv dotenv = Dotenv .load ();
27
25
28
26
boolean headless = Boolean .parseBoolean (
29
- dotenv . get ( "HEADLESS" , "true " )
27
+ System . getenv (). getOrDefault ( "HEADLESS" , "false " )
30
28
);
31
29
32
30
BrowserType .LaunchOptions launchOptions = new BrowserType .LaunchOptions ()
You can’t perform that action at this time.
0 commit comments