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 88* .iml
99.DS_Store
1010
11+ .env
1112/htmlReport /
1213
1314# The following files are generated/updated by vaadin-maven-plugin
Original file line number Diff line number Diff line change 107107 <scope >test</scope >
108108 </dependency >
109109
110+ <dependency >
111+ <groupId >io.github.cdimascio</groupId >
112+ <artifactId >dotenv-java</artifactId >
113+ <version >3.0.0</version >
114+ </dependency >
115+
110116 <dependency >
111117 <groupId >com.microsoft.playwright</groupId >
112118 <artifactId >playwright</artifactId >
Original file line number Diff line number Diff line change 11package org .javadominicano ;
22
33import com .microsoft .playwright .*;
4+ import io .github .cdimascio .dotenv .Dotenv ;
45import org .junit .jupiter .api .AfterAll ;
56import org .junit .jupiter .api .AfterEach ;
67import org .junit .jupiter .api .BeforeAll ;
@@ -22,8 +23,10 @@ public static void beforeAll() {
2223 playwright = Playwright .create ();
2324 BrowserType browserType = playwright .chromium ();
2425
26+ Dotenv dotenv = Dotenv .load ();
27+
2528 boolean headless = Boolean .parseBoolean (
26- System . getenv (). getOrDefault ("HEADLESS" , "true" )
29+ dotenv . get ("HEADLESS" , "true" )
2730 );
2831
2932 BrowserType .LaunchOptions launchOptions = new BrowserType .LaunchOptions ()
You can’t perform that action at this time.
0 commit comments