diff hg-web/e2e/BUILD @ 223:0e7b9464248d hg-web

[hg-web] Add browser route regression coverage
author MrJuneJune <me@mrjunejune.com>
date Sun, 02 Aug 2026 10:07:40 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hg-web/e2e/BUILD	Sun Aug 02 10:07:40 2026 -0700
@@ -0,0 +1,31 @@
+load("@aspect_rules_js//js:defs.bzl", "js_test")
+load("@hg_web_npm//:defs.bzl", "npm_link_all_packages")
+
+exports_files([
+    "package-lock.json",
+    "package.json",
+    "pnpm-lock.yaml",
+])
+
+npm_link_all_packages(name = "node_modules")
+
+js_test(
+    name = "app_e2e_test",
+    entry_point = "app_e2e_test.js",
+    data = [
+        ":node_modules/playwright-core",
+        "//hg-web:hg_web_server",
+        "@playwright_chromium_linux//:chromium",
+        "@playwright_chromium_linux//:chrome",
+    ],
+    env = {
+        "CHROMIUM_PATH": "$(rootpath @playwright_chromium_linux//:chrome)",
+    },
+    no_copy_to_bin = ["@playwright_chromium_linux//:chromium"],
+    size = "large",
+    target_compatible_with = [
+        "@platforms//cpu:x86_64",
+        "@platforms//os:linux",
+    ],
+    timeout = "long",
+)