Skip to content

Commit

Permalink
Fix ITs (#3248)
Browse files Browse the repository at this point in the history
Need dockers from
cloudfoundry/uaa-ci#25
  • Loading branch information
strehle authored Jan 20, 2025
1 parent 2f178a3 commit 03896ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import com.dumbster.smtp.SimpleSmtpServer;
import org.cloudfoundry.identity.uaa.oauth.client.test.TestAccounts;
import org.cloudfoundry.identity.uaa.test.UaaTestAccounts;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.springframework.beans.factory.annotation.Value;
Expand Down Expand Up @@ -64,7 +63,6 @@ public ChromeDriver webDriver() {
.implicitlyWait(IMPLICIT_WAIT_TIME.multipliedBy(timeoutMultiplier))
.pageLoadTimeout(PAGE_LOAD_TIMEOUT.multipliedBy(timeoutMultiplier))
.scriptTimeout(SCRIPT_TIMEOUT.multipliedBy(timeoutMultiplier));
driver.manage().window().setSize(new Dimension(1024, 768));
return driver;
}

Expand All @@ -73,9 +71,7 @@ private static ChromeOptions getChromeOptions() {
options.addArguments(
"--verbose",
// Comment the following line to run selenium test browser in Headed Mode
"--headless=old",
"--window-position=-2400,-2400",
"--window-size=1024,768",
"--headless",
"--disable-web-security",
"--ignore-certificate-errors",
"--allow-running-insecure-content",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void notAutoLoginAfterResetPassword() {
webDriver.findElement(By.name("password")).sendKeys("new_password");
webDriver.findElement(By.xpath("//input[@value='Sign in']")).click();

assertThat(webDriver.getCurrentUrl()).startsWith("http://example.redirect.com/?code=");
assertThat(webDriver.getCurrentUrl()).startsWith("https://example.redirect.com/?code=");
}

@Test
Expand Down

0 comments on commit 03896ad

Please sign in to comment.