Skip to content

Commit abad15e

Browse files
committed
Check whether we should skip the ReferrerTest
1 parent 06ff139 commit abad15e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

java/test/org/openqa/selenium/ReferrerTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import static java.nio.charset.StandardCharsets.US_ASCII;
2222
import static java.nio.charset.StandardCharsets.UTF_8;
2323
import static org.assertj.core.api.Assertions.assertThat;
24+
import static org.assertj.core.api.Assumptions.assumeThat;
2425
import static org.openqa.selenium.build.InProject.locate;
2526
import static org.openqa.selenium.remote.CapabilityType.PROXY;
2627
import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;
@@ -93,6 +94,11 @@ class ReferrerTest {
9394
private TestServer server2;
9495
private ProxyServer proxyServer;
9596

97+
@BeforeAll
98+
public static void shouldTestBeRunAtAll() {
99+
assumeThat(Boolean.getBoolean("selenium.skiptest")).isFalse();
100+
}
101+
96102
@BeforeAll
97103
public static void readContents() throws IOException {
98104
page1 = new String(Files.readAllBytes(locate("common/src/web/proxy" + PAGE_1)));

0 commit comments

Comments
 (0)