From cd160c2a91fa4f54b0576f3d295a58426fcb8384 Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Fri, 1 Nov 2024 19:10:18 -0400 Subject: [PATCH] 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. --- tests/legacy-cli/e2e/tests/basic/rebuild.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/legacy-cli/e2e/tests/basic/rebuild.ts b/tests/legacy-cli/e2e/tests/basic/rebuild.ts index 787fe1acfb19..f512961366bc 100644 --- a/tests/legacy-cli/e2e/tests/basic/rebuild.ts +++ b/tests/legacy-cli/e2e/tests/basic/rebuild.ts @@ -6,7 +6,7 @@ import { ngServe } from '../../utils/project'; export default async function () { const esbuild = getGlobalVariable('argv')['esbuild']; - const validBundleRegEx = esbuild ? /complete\./ : /Compiled successfully\./; + const validBundleRegEx = esbuild ? /sent to client/ : /Compiled successfully\./; const lazyBundleRegEx = esbuild ? /chunk-/ : /src_app_lazy_lazy_component_ts\.js/; // Disable component stylesheet HMR to support page reload based rebuild testing.