File tree Expand file tree Collapse file tree 5 files changed +13
-1
lines changed
src/test/java/org/javadominicano Expand file tree Collapse file tree 5 files changed +13
-1
lines changed Original file line number Diff line number Diff line change
1
+ HEADLESS = false
Original file line number Diff line number Diff line change
1
+ HEADLESS=false
Original file line number Diff line number Diff line change 8
8
* .iml
9
9
.DS_Store
10
10
11
+ .env
11
12
/htmlReport /
12
13
13
14
# The following files are generated/updated by vaadin-maven-plugin
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
+
110
116
<dependency >
111
117
<groupId >com.microsoft.playwright</groupId >
112
118
<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 ;
4
5
import org .junit .jupiter .api .AfterAll ;
5
6
import org .junit .jupiter .api .AfterEach ;
6
7
import org .junit .jupiter .api .BeforeAll ;
@@ -22,8 +23,10 @@ public static void beforeAll() {
22
23
playwright = Playwright .create ();
23
24
BrowserType browserType = playwright .chromium ();
24
25
26
+ Dotenv dotenv = Dotenv .load ();
27
+
25
28
boolean headless = Boolean .parseBoolean (
26
- System . getenv (). getOrDefault ("HEADLESS" , "true" )
29
+ dotenv . get ("HEADLESS" , "true" )
27
30
);
28
31
29
32
BrowserType .LaunchOptions launchOptions = new BrowserType .LaunchOptions ()
You can’t perform that action at this time.
0 commit comments