From dce565ace390ca94215d5935ec380a72323eb040 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 10 Oct 2026 19:22:06 +0000 Subject: [PATCH] Let the late-component test follow the frontend under its second name The control of embed-control's main creates the frontend under the name the bundle's z2ui5/embed module gives (componentName, z2ui5.embed.frontend on abap2UI5 main) - the test only intercepted a Component.create for "z2ui5", never saw the start and ran into its timeout, which turned embed-control's CI red on main. It intercepts both names now, so it passes with the published control and with the one of embed-control's main. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Te3BRpRpxNhZAYnrQL6Gdt --- test/e2e/freestyle.spec.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/e2e/freestyle.spec.mjs b/test/e2e/freestyle.spec.mjs index a2c4979..370d512 100644 --- a/test/e2e/freestyle.spec.mjs +++ b/test/e2e/freestyle.spec.mjs @@ -355,11 +355,15 @@ for (const change of ["a new app", "the control destroyed"]) { componentCreated: () => state.created++, }); // the moment the component is asked for - Component.create - // has not resolved yet; whoever creates it goes through here + // has not resolved yet; whoever creates it goes through here. + // The frontend is z2ui5, or the second name a newer bundle + // gives it (componentName of z2ui5/embed) - the control's + // release after 0.1.1 creates it under that one + const names = ["z2ui5", "z2ui5.embed.frontend"]; const create = Component.create; Component.create = function (options) { const creating = create.apply(this, arguments); - if (options.name !== "z2ui5") return creating; + if (!names.includes(options.name)) return creating; Component.create = create; queueMicrotask(() => { const acted = state.created === 0;