2018-04-09 02:53:31 -04:00
|
|
|
load("//packages/bazel:index.bzl", "protractor_web_test_suite")
|
2018-10-04 16:14:14 -04:00
|
|
|
load("//tools:defaults.bzl", "ts_library")
|
2018-04-09 02:53:31 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "ts_spec",
|
|
|
|
testonly = True,
|
|
|
|
srcs = ["test.spec.ts"],
|
2018-07-27 14:32:51 -04:00
|
|
|
tsconfig = ":tsconfig.json",
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//@types/selenium-webdriver",
|
|
|
|
"@npm//protractor",
|
2018-10-04 16:14:14 -04:00
|
|
|
],
|
2018-04-09 02:53:31 -04:00
|
|
|
)
|
|
|
|
|
2018-07-06 17:51:37 -04:00
|
|
|
ts_library(
|
|
|
|
name = "ts_conf",
|
|
|
|
testonly = True,
|
|
|
|
srcs = ["conf.ts"],
|
|
|
|
tsconfig = ":tsconfig.json",
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
|
|
|
"//packages/bazel/src/protractor/utils",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//protractor",
|
2018-10-04 16:14:14 -04:00
|
|
|
],
|
2018-07-06 17:51:37 -04:00
|
|
|
)
|
|
|
|
|
2018-04-09 02:53:31 -04:00
|
|
|
protractor_web_test_suite(
|
2018-07-06 17:51:37 -04:00
|
|
|
name = "test",
|
|
|
|
configuration = ":ts_conf",
|
|
|
|
data = ["//packages/bazel/src/protractor/utils"],
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
|
|
|
":ts_spec",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//protractor",
|
2018-10-04 16:14:14 -04:00
|
|
|
],
|
2018-04-09 02:53:31 -04:00
|
|
|
)
|