# Description:
#   Tests for espresso assertions

load(
    "//build_extensions:android_app_instrumentation_tests.bzl",
    "android_app_instrumentation_tests",
)
load(
    "//build_extensions:test_devices.bzl",
    "devices",
)

licenses(["notice"])  # Apache License 2.0

android_app_instrumentation_tests(
    name = "instrumentation_tests",
    srcs = glob(["*.java"]),
    binary_target = "//testapps/ui_testapp/java/androidx/test/ui/app:testapp",
    target_devices = devices(),
    deps = [
        "//core",
        "//espresso/core/java/androidx/test/espresso",
        "//espresso/core/java/androidx/test/espresso/action",
        "//espresso/core/java/androidx/test/espresso/assertion",
        "//espresso/core/java/androidx/test/espresso/assertion:remote_view_assertions",
        "//espresso/core/java/androidx/test/espresso/matcher:remote_hamcrest_v1_3_core_matchers",
        "//espresso/core/java/androidx/test/espresso/matcher:remote_view_matchers",
        "//espresso/core/java/androidx/test/espresso/proto/assertion:ui_interaction_view_assertions_android_pb3",
        "//espresso/core/java/androidx/test/espresso/remote:interface",
        "//espresso/core/java/androidx/test/espresso/remote:protoUtils",
        "//espresso/core/java/androidx/test/espresso/remote:registry",
        "//ext/junit",
        "//runner/android_junit_runner",
        "//runner/rules",
        "//testapps/ui_testapp/java/androidx/test/ui/app:lib_neverlink",
        "@maven//:com_linkedin_dexmaker_dexmaker",
        "@maven//:com_linkedin_dexmaker_dexmaker_mockito",
        "@maven//:javax_inject_javax_inject",
        "@maven//:junit_junit",
        "@maven//:org_hamcrest_hamcrest_all",
        "@maven//:org_mockito_mockito_core",
        "@maven//:org_objenesis_objenesis",
    ],
)
