Skip to content

Commit

Permalink
Use specific browser version for CAS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusdacoregio committed Feb 15, 2024
1 parent bd97c96 commit ea63c15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion servlet/spring-boot/java/cas/login/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
testImplementation 'com.codeborne:selenide:6.12.4'
testImplementation 'org.seleniumhq.selenium:selenium-chrome-driver'
testImplementation 'org.seleniumhq.selenium:selenium-java'
testImplementation 'io.github.bonigarcia:webdrivermanager:5.5.2'
testImplementation 'io.github.bonigarcia:webdrivermanager:5.6.3'
}

tasks.withType(Test).configureEach {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.codeborne.selenide.Configuration;
import com.codeborne.selenide.Selenide;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -63,6 +64,12 @@ static void casProperties(DynamicPropertyRegistry registry) {

@BeforeAll
static void setUp() {
WebDriverManager.chromedriver()
.clearDriverCache()
.clearResolutionCache()
.browserInDocker()
.browserVersion("114")
.setup();
Configuration.headless = true;
}

Expand Down

0 comments on commit ea63c15

Please sign in to comment.