@@ -4,7 +4,7 @@ load("//src/cdk:config.bzl", "CDK_TARGETS")
44load ("//src/cdk-experimental:config.bzl" , "CDK_EXPERIMENTAL_TARGETS" )
55load ("//src/material:config.bzl" , "MATERIAL_TARGETS" )
66load ("//src/material-experimental:config.bzl" , "MATERIAL_EXPERIMENTAL_TARGETS" )
7- load ("//tools:defaults.bzl" , "devmode_esbuild" , "http_server" , "ng_module" , "sass_binary" , "ts_library" )
7+ load ("//tools:defaults.bzl" , "devmode_esbuild" , "http_server" , "ng_e2e_test_library" , " ng_module" , "protractor_web_test_suite " , "sass_binary" , "ts_library" )
88load ("//tools/angular:index.bzl" , "LINKER_PROCESSED_FW_PACKAGES" )
99
1010package (default_visibility = ["//visibility:public" ])
@@ -127,6 +127,7 @@ http_server(
127127 name = "server" ,
128128 srcs = [
129129 ":debug_prerender_bin" ,
130+ "@npm//zone.js" ,
130131 ],
131132 additional_root_paths = [
132133 "npm/node_modules" ,
@@ -137,3 +138,19 @@ http_server(
137138 ":styles_scss" ,
138139 ],
139140)
141+
142+ ng_e2e_test_library (
143+ name = "hydration_e2e_tests_sources" ,
144+ srcs = ["hydration.e2e.spec.ts" ],
145+ )
146+
147+ protractor_web_test_suite (
148+ name = "hydration_e2e_tests" ,
149+ configuration = ":protractor.conf.js" ,
150+ on_prepare = ":start-devserver.js" ,
151+ server = ":server" ,
152+ tags = ["e2e" ],
153+ deps = [
154+ ":hydration_e2e_tests_sources" ,
155+ ],
156+ )
0 commit comments