Skip to content

Commit

Permalink
First test fails with initialization error sometimes (workaround) #48
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaurite committed Oct 25, 2022
1 parent 28740c5 commit d4df681
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ abstract class BrowserExtension implements BeforeAllCallback, BeforeEachCallback
}

void startBrowser() {
// workaround, see https://github.com/jmix-framework/jmix-ui-tests/issues/48
browser = new BrowserWebDriverContainer()
.withCapabilities(getCapabilities())
.withCapabilities(capabilities)
.withEnv("SE_OPTS", "--session-retry-interval 1") as BrowserWebDriverContainer

browser.start()
RemoteWebDriver remoteWebDriver = browser.getWebDriver()
remoteWebDriver.setFileDetector(new LocalFileDetector())
Expand Down

0 comments on commit d4df681

Please sign in to comment.