load("//dotnet:defs.bzl", "dotnet_nunit_test_suite", "framework")

SMALL_TESTS = [
    "EventFiringWebDriverTest.cs",
]

dotnet_nunit_test_suite(
    name = "SmallTests",
    size = "small",
    srcs = SMALL_TESTS,
    target_frameworks = ["net8.0"],
    deps = [
        "//dotnet/src/support",
        "//dotnet/src/webdriver:webdriver-net8.0",
        "//dotnet/test/common:fixtures",
        framework("nuget", "NUnit"),
        framework("nuget", "Moq"),
    ],
)

dotnet_nunit_test_suite(
    name = "LargeTests",
    size = "large",
    srcs = glob(
        ["*Test.cs"],
        exclude = SMALL_TESTS,
    ) + [
        "//dotnet/test/common:assembly-fixtures",
    ],
    browsers = [
        "firefox",
    ],
    data = [
        "//dotnet/test/common:test-data",
    ],
    target_frameworks = ["net8.0"],
    deps = [
        "//dotnet/src/support",
        "//dotnet/src/webdriver:webdriver-net8.0",
        "//dotnet/test/common:fixtures",
        framework("nuget", "NUnit"),
    ],
)
