-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor tweaks to OAuth2 WireMock login test
- Loading branch information
1 parent
94266ce
commit 20a3f47
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,13 +70,11 @@ public void logs_in_via_wiremock_sso() throws Exception { | |
webDriver.findElement(By.name("password")).sendKeys("pass123"); | ||
webDriver.findElement(By.id("submit")).click(); | ||
|
||
Thread.sleep(2000); | ||
|
||
assertThat(webDriver.getCurrentUrl()).contains("/user"); | ||
assertThat(webDriver.findElement(By.tagName("h1")).getText()).contains("Hello [email protected]!"); | ||
} | ||
|
||
static { | ||
System.setProperty("webdriver.chrome.driver", "lib/chromedriver"); | ||
System.setProperty("webdriver.chrome.driver", "lib/chromedriver"); // This is the OSX driver. You'll need to tweak this if you want to run on Windows or Linux. | ||
} | ||
} |