mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
718bfd2fb7
Update to use MODULE.bazel PR Close #63246
28 lines
841 B
Python
28 lines
841 B
Python
load("@devinfra//bazel/spec-bundling:index.bzl", _spec_bundle = "spec_bundle")
|
|
load("@rules_browsers//protractor_test:index.bzl", _protractor_test = "protractor_test")
|
|
|
|
def protractor_web_test_suite(name, deps, **kwargs):
|
|
_spec_bundle(
|
|
name = "%s_bundle" % name,
|
|
deps = deps,
|
|
external = ["protractor", "selenium-webdriver"],
|
|
)
|
|
|
|
_protractor_test(
|
|
name = name,
|
|
deps = [":%s_bundle" % name],
|
|
extra_config = {
|
|
"useAllAngular2AppRoots": True,
|
|
"allScriptsTimeout": 120000,
|
|
"getPageTimeout": 120000,
|
|
"jasmineNodeOpts": {
|
|
"defaultTimeoutInterval": 120000,
|
|
},
|
|
},
|
|
data = [
|
|
"//:node_modules/protractor",
|
|
"//:node_modules/selenium-webdriver",
|
|
],
|
|
**kwargs
|
|
)
|