load("@rules_jvm_external//:defs.bzl", "artifact")
load("//java:defs.bzl", "JUNIT5_DEPS", "java_library", "java_test_suite")

java_library(
    name = "net",
    srcs = ["StubNetworkInterfaceProvider.java"],
    visibility = ["//java/test/org/openqa/selenium:__pkg__"],
    deps = [
        "//java/src/org/openqa/selenium:core",
    ],
)

java_test_suite(
    name = "SmallTests",
    size = "small",
    srcs = glob(["*Test.java"]),
    tags = [
        "no-sandbox",
    ],
    deps = [
        ":net",
        "//java/src/org/openqa/selenium:core",
        "//java/src/org/openqa/selenium/remote/http",
        "//java/test/org/openqa/selenium/environment",
        "//java/test/org/openqa/selenium/testing:annotations",
        "//java/test/org/openqa/selenium/testing:test-base",
        artifact("org.junit.jupiter:junit-jupiter-api"),
        artifact("org.assertj:assertj-core"),
    ] + JUNIT5_DEPS,
)
