Skip to content

Commit 9ba73d5

Browse files
committed
[java] Ensure Edge is not tested in Grid tests
1 parent 6988a68 commit 9ba73d5

1 file changed

Lines changed: 29 additions & 5 deletions

File tree

java/test/org/openqa/selenium/grid/router/BUILD.bazel

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ LARGE_TESTS = [
88
"NewSessionCreationTest.java",
99
"RemoteWebDriverDownloadTest.java",
1010
"StressTest.java",
11+
]
12+
13+
FIREFOX_CHROME_ONLY_LARGE_TESTS = [
1114
"RemoteWebDriverBiDiTest.java",
1215
]
1316

@@ -53,10 +56,6 @@ java_selenium_test_suite(
5356
],
5457
deps = [
5558
":support",
56-
"//java/src/org/openqa/selenium/bidi",
57-
"//java/src/org/openqa/selenium/bidi/browsingcontext",
58-
"//java/src/org/openqa/selenium/bidi/log",
59-
"//java/src/org/openqa/selenium/bidi/module",
6059
"//java/src/org/openqa/selenium/chrome",
6160
"//java/src/org/openqa/selenium/firefox",
6261
"//java/src/org/openqa/selenium/grid",
@@ -77,12 +76,37 @@ java_selenium_test_suite(
7776
] + CDP_DEPS + JUNIT5_DEPS,
7877
)
7978

79+
java_selenium_test_suite(
80+
name = "firefox-chrome-only-large-tests",
81+
size = "large",
82+
srcs = FIREFOX_CHROME_ONLY_LARGE_TESTS,
83+
browsers = [
84+
"firefox",
85+
"chrome",
86+
],
87+
deps = [
88+
":support",
89+
"//java/src/org/openqa/selenium/bidi",
90+
"//java/src/org/openqa/selenium/bidi/browsingcontext",
91+
"//java/src/org/openqa/selenium/bidi/log",
92+
"//java/src/org/openqa/selenium/bidi/module",
93+
"//java/src/org/openqa/selenium/firefox",
94+
"//java/src/org/openqa/selenium/grid/config",
95+
"//java/src/org/openqa/selenium/remote",
96+
"//java/test/org/openqa/selenium/environment",
97+
"//java/test/org/openqa/selenium/testing:annotations",
98+
"//java/test/org/openqa/selenium/testing:test-base",
99+
artifact("org.junit.jupiter:junit-jupiter-api"),
100+
artifact("org.assertj:assertj-core"),
101+
] + CDP_DEPS + JUNIT5_DEPS,
102+
)
103+
80104
java_test_suite(
81105
name = "medium-tests",
82106
size = "medium",
83107
srcs = glob(
84108
["*Test.java"],
85-
exclude = LARGE_TESTS,
109+
exclude = LARGE_TESTS + FIREFOX_CHROME_ONLY_LARGE_TESTS,
86110
),
87111
tags = [
88112
"requires-network",

0 commit comments

Comments
 (0)