Skip to content

Commit cd160c2

Browse files
committed
test: reduce flakiness of E2E rebuild test
The rebuild E2E test now waits for the development server to indicate it has updated any clients before trying to fetch files. This improves the reliability of the test when using the application builder.
1 parent 4b30f4e commit cd160c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/legacy-cli/e2e/tests/basic/rebuild.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { ngServe } from '../../utils/project';
66

77
export default async function () {
88
const esbuild = getGlobalVariable('argv')['esbuild'];
9-
const validBundleRegEx = esbuild ? /complete\./ : /Compiled successfully\./;
9+
const validBundleRegEx = esbuild ? /sent to client/ : /Compiled successfully\./;
1010
const lazyBundleRegEx = esbuild ? /chunk-/ : /src_app_lazy_lazy_component_ts\.js/;
1111

1212
// Disable component stylesheet HMR to support page reload based rebuild testing.

0 commit comments

Comments
 (0)