[java] Adding DevTools tests to bazel as java_selenium_test_suite
-load("//java:defs.bzl", "java_test_suite")
+load("//java:defs.bzl", "java_selenium_test_suite")
-DEV_TOOLS_BROWSERS = {
- "chrome": {
- "deps": ["//java/client/src/org/openqa/selenium/chrome"],
- "jvm_flags": ["-Dselenium.browser=chrome"],
- },
- "edge": {
- "deps": ["//java/client/src/org/openqa/selenium/edge"],
- "jvm_flags": ["-Dselenium.browser=edge"],
- },
-}
-
-[java_test_suite(
- name = "LargeTests-%s" % name,
- size = "large",
+java_selenium_test_suite(
+ name = "LargeTests",
+ browsers = [
+ "chrome",
+ ],
srcs = glob(["*Test.java"]),
- jvm_flags = values["jvm_flags"],
- deps = values["deps"] + [
+ deps = [
":test-lib",
"//java/client/src/org/openqa/selenium/devtools",
"//java/client/src/org/openqa/selenium/remote",
"//third_party/java/guava",
"//third_party/java/junit",
],
-) for (name, values) in DEV_TOOLS_BROWSERS.items()]
+)
java_library(
name = "test-lib",
