Skip to content

Commit

Permalink
[java] Disable referrer tests in Chrome due to it's new defaults
Browse files Browse the repository at this point in the history
From Chrome 85 referrer data is stripped for privacy reason. These
tests are now ignored for Chrome
  • Loading branch information
AutomatedTester committed Mar 19, 2021
1 parent 08e351d commit fed7cd1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions java/client/test/org/openqa/selenium/ReferrerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ public void basicHistoryNavigationWithoutAProxy() {
*/
@Test
@NeedsLocalEnvironment
@Ignore(value = CHROME,
reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default")
public void crossDomainHistoryNavigationWithoutAProxy() {
String page1Url = server1.whereIs(PAGE_1) + "?next=" + encode(server2.whereIs(PAGE_2));
String page2Url = server2.whereIs(PAGE_2) + "?next=" + encode(server1.whereIs(PAGE_3));
Expand Down Expand Up @@ -198,6 +200,8 @@ public void basicHistoryNavigationWithADirectProxy() {
*/
@Test
@NeedsLocalEnvironment
@Ignore(value = CHROME,
reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default")
public void crossDomainHistoryNavigationWithADirectProxy() {
proxyServer.setPacFileContents("function FindProxyForURL(url, host) { return 'DIRECT'; }");
WebDriver driver = createDriver(proxyServer.whereIs("/pac.js"));
Expand All @@ -221,6 +225,8 @@ public void crossDomainHistoryNavigationWithADirectProxy() {
*/
@Test
@NeedsLocalEnvironment
@Ignore(value = CHROME,
reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default")
public void crossDomainHistoryNavigationWithAProxiedHost() {
proxyServer.setPacFileContents(Joiner.on('\n').join(
"function FindProxyForURL(url, host) {",
Expand Down Expand Up @@ -251,6 +257,8 @@ public void crossDomainHistoryNavigationWithAProxiedHost() {
*/
@Test
@NeedsLocalEnvironment
@Ignore(value = CHROME,
reason = "https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default")
public void crossDomainHistoryNavigationWhenProxyInterceptsHostRequests() {
proxyServer.setPacFileContents(Joiner.on('\n').join(
"function FindProxyForURL(url, host) {",
Expand Down

0 comments on commit fed7cd1

Please sign in to comment.