Skip to content

Commit

Permalink
Check whether we should skip the ReferrerTest
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed May 31, 2023
1 parent 06ff139 commit abad15e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions java/test/org/openqa/selenium/ReferrerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static java.nio.charset.StandardCharsets.US_ASCII;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assumptions.assumeThat;
import static org.openqa.selenium.build.InProject.locate;
import static org.openqa.selenium.remote.CapabilityType.PROXY;
import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;
Expand Down Expand Up @@ -93,6 +94,11 @@ class ReferrerTest {
private TestServer server2;
private ProxyServer proxyServer;

@BeforeAll
public static void shouldTestBeRunAtAll() {
assumeThat(Boolean.getBoolean("selenium.skiptest")).isFalse();
}

@BeforeAll
public static void readContents() throws IOException {
page1 = new String(Files.readAllBytes(locate("common/src/web/proxy" + PAGE_1)));
Expand Down

0 comments on commit abad15e

Please sign in to comment.