Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Aug 31, 2024
1 parent 288e787 commit f869f69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public void testRoutingLinks_externalLink_pageChanges() {

verifySamePage();

clickLink("http://example.net/");
clickLink("https://example.net/");

String currentUrl = getDriver().getCurrentUrl();

// Chrome changes url to whatever it can, removing www part, forcing
// https.
Assert.assertTrue("Invalid URL: " + currentUrl, currentUrl.equals("http://example.net/"));
Assert.assertEquals("Invalid URL: " + currentUrl, "https://example.net/", currentUrl);
}

@Test
Expand Down

0 comments on commit f869f69

Please sign in to comment.