Skip to content

Commit

Permalink
Try chrome-container
Browse files Browse the repository at this point in the history
  • Loading branch information
alextu committed Nov 20, 2023
1 parent c64a457 commit c625b5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion acceptance-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jenkinsVersions
mapOf(
"JENKINS_WAR" to downloadJenkinsTask.get().outputs.files.singleFile,
"LOCAL_JARS" to gradlePlugin.singleFile,
"BROWSER" to if (ciJenkinsBuild) "firefox-container" else "chrome"
"BROWSER" to if (true) "chrome-container" else "chrome"
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
class WebDriverProvider implements Provider<WebDriver> {

private static final Logger LOGGER = Logger.getLogger(FallbackConfig.class.getName());
private static final String FIREFOX_BROWSER = "firefox-container";
private static final String CI_BROWSER = "chrome-container";
private final TestCleaner testCleaner;
private final FallbackConfig fallbackConfig;
private final TestName testName;
Expand All @@ -44,14 +44,14 @@ public WebDriverProvider(

private String getBrowser() {
String browser = System.getenv("BROWSER");
if (browser == null) browser = FIREFOX_BROWSER;
if (browser == null) browser = CI_BROWSER;
browser = browser.toLowerCase(Locale.ENGLISH);
return browser;
}

@Override
public WebDriver get() {
if (FIREFOX_BROWSER.equals(getBrowser())) {
if (CI_BROWSER.equals(getBrowser())) {
try {
return fallbackConfig.createWebDriver(testCleaner, testName, time);
} catch (IOException e) {
Expand Down

0 comments on commit c625b5c

Please sign in to comment.