Skip to content

Commit f0fb82b

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. (cherry picked from commit cd160c2)
1 parent c1dd73e commit f0fb82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)