Skip to content

Commit 779f485

Browse files
committed
Cache Safari JSEnv
1 parent 31bab00 commit 779f485

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build.sbt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ lazy val useJSEnv =
109109

110110
Global / useJSEnv := JSEnv.NodeJS
111111

112+
lazy val safariEnv = {
113+
val options = new SafariOptions()
114+
new SeleniumJSEnv(options)
115+
}
116+
112117
ThisBuild / Test / jsEnv := {
113118
import JSEnv._
114119

@@ -141,8 +146,7 @@ ThisBuild / Test / jsEnv := {
141146
}
142147
new SeleniumJSEnv(options, SeleniumJSEnv.Config().withDriverFactory(factory))
143148
case Safari =>
144-
val options = new SafariOptions()
145-
new SeleniumJSEnv(options)
149+
safariEnv
146150
}
147151
}
148152

0 commit comments

Comments
 (0)