blob: a3264f404cbe756bad93d2347c40244de43ef041 [file] [log] [blame]
load("//infra-sk:index.bzl", "karma_test", "sk_demo_page_server", "sk_element", "sk_element_puppeteer_test", "sk_page", "ts_library")
sk_demo_page_server(
name = "demo_page_server",
sk_page = ":query-sk-demo",
)
sk_element(
name = "query-sk",
sass_deps = [
"//elements-sk/modules/styles:buttons_sass_lib",
"//infra-sk:themes_sass_lib",
],
sass_srcs = ["query-sk.scss"],
sk_element_deps = [
"//infra-sk/modules/query-values-sk",
"//elements-sk/modules/select-sk",
],
ts_deps = [
"//infra-sk/modules/ElementSk:index_ts_lib",
"//elements-sk/modules:define_ts_lib",
"//infra-sk/modules:query_ts_lib",
"//:node_modules/lit-html",
],
ts_srcs = [
"index.ts",
"query-sk.ts",
],
visibility = ["//visibility:public"],
)
sk_page(
name = "query-sk-demo",
html_file = "query-sk-demo.html",
scss_entry_point = "query-sk-demo.scss",
sk_element_deps = [":query-sk"],
ts_entry_point = "query-sk-demo.ts",
)
ts_library(
name = "query-sk_po_ts_lib",
srcs = ["query-sk_po.ts"],
visibility = ["//visibility:public"],
deps = [
"//infra-sk/modules:query_ts_lib",
"//infra-sk/modules/page_object:page_object_element_ts_lib",
"//infra-sk/modules/page_object:page_object_ts_lib",
"//infra-sk/modules/query-values-sk:query-values-sk_po_ts_lib",
],
)
sk_element_puppeteer_test(
name = "query-sk_puppeteer_test",
src = "query-sk_puppeteer_test.ts",
sk_demo_page_server = ":demo_page_server",
deps = [
"//:node_modules/@types/chai",
"//:node_modules/chai",
"//puppeteer-tests:util_ts_lib",
],
)
karma_test(
name = "query-sk_test",
src = "query-sk_test.ts",
deps = [
":query-sk",
":query-sk_po_ts_lib",
"//:node_modules/@types/chai",
"//:node_modules/chai",
"//infra-sk/modules:query_ts_lib",
"//infra-sk/modules:test_util_ts_lib",
],
)