@@ -4,7 +4,7 @@ load("//src/cdk:config.bzl", "CDK_TARGETS")
4
4
load ("//src/cdk-experimental:config.bzl" , "CDK_EXPERIMENTAL_TARGETS" )
5
5
load ("//src/material:config.bzl" , "MATERIAL_TARGETS" )
6
6
load ("//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" )
8
8
load ("//tools/angular:index.bzl" , "LINKER_PROCESSED_FW_PACKAGES" )
9
9
10
10
package (default_visibility = ["//visibility:public" ])
@@ -127,6 +127,7 @@ http_server(
127
127
name = "server" ,
128
128
srcs = [
129
129
":debug_prerender_bin" ,
130
+ "@npm//zone.js" ,
130
131
],
131
132
additional_root_paths = [
132
133
"npm/node_modules" ,
@@ -137,3 +138,19 @@ http_server(
137
138
":styles_scss" ,
138
139
],
139
140
)
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