Skip to content

Freestyle: report a failed start of #left and #right as well - #15

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/beautiful-turing-wxr303
Oct 11, 2026
Merged

oblomov-dev merged 1 commit into
mainfrom
claude/beautiful-turing-wxr303

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

What changes

  • In the freestyle example, #left and #right (two instances, two sessions) now handle componentFailed with the controller's existing onComponentFailed. That handler shows the same "abap2UI5 could not start: ..." toast that #single shows.
  • The test "a logon page instead of the bundle ends in componentFailed" now takes .first() of those toasts, because all three controls fail together there. The other failure tests already did this.

Why

Before, a failed start of either side-by-side container (a logon page instead of the bundle, a backend that is down) left an empty frame with no message, while #single said why. The round-4 review flagged this.

It also helps with the intermittent samples failure in embed-control's CI: the beforeEach waits for 3 Post buttons and sometimes gets only 1. With this change, the page snapshot of such a run will show why the other two did not start.

Checked

  • npm run lint and npm run format:check pass.
  • npx playwright test --project ui5-1.136 --project ui5-1.71: 45 passed, 1 skipped. This ran locally against abap2UI5 main on port 3000, with @abap2ui5/embed-control 0.2.0 from embed-control's main unpacked into node_modules (not committed).
  • With the published 0.1.1, this PR's e2e job fails exactly like main: the tests that need 0.2.0 fail until 0.2.0 is published and the lockfile is bumped. That is not caused by this change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Te3BRpRpxNhZAYnrQL6Gdt


Generated by Claude Code

#left and #right of the freestyle example had no componentFailed handler:
when either could not start (a logon page instead of the bundle, a backend
that is down) the frame stayed empty without a word, while #single said
why. Both now show the same toast. The logon-page test takes the first of
the three toasts, which all three controls now raise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Te3BRpRpxNhZAYnrQL6Gdt
@oblomov-dev
oblomov-dev merged commit 8dddb1b into main Oct 11, 2026
2 of 4 checks passed
@oblomov-dev
oblomov-dev deleted the claude/beautiful-turing-wxr303 branch October 11, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants