diff mrjunejune/test/BUILD @ 241:9c2eec61a152

[assets] Generate site images as WebP with Bazel
author MrJuneJune <me@mrjunejune.com>
date Mon, 03 Aug 2026 11:26:30 -0700
parents f3084bca7317
children 543df0fe7168
line wrap: on
line diff
--- a/mrjunejune/test/BUILD	Mon Aug 03 10:48:59 2026 -0700
+++ b/mrjunejune/test/BUILD	Mon Aug 03 11:26:30 2026 -0700
@@ -1,5 +1,6 @@
 load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
 load("@rules_cc//cc:cc_test.bzl", "cc_test")
+load("@aspect_rules_js//js:defs.bzl", "js_test")
 load("//gui_ze:gui_ze.bzl", "move_files_into_dir", "bundle")
 
 # Files needed for test
@@ -46,3 +47,24 @@
   timeout = "long",
   args = ["$(location //mrjunejune:mrjunejune_server)"],
 )
+
+js_test(
+  name = "theme_and_webp_test",
+  entry_point = "theme_and_webp_test.js",
+  data = [
+    "//hg-web/e2e:node_modules/playwright-core",
+    "//mrjunejune:mrjunejune_server",
+    "@playwright_chromium_linux//:chrome",
+    "@playwright_chromium_linux//:chromium",
+  ],
+  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",
+)