Skip to content

test: enable child rendering in WorkspaceComponent spec#5037

Open
Ma77Ball wants to merge 2 commits into
apache:mainfrom
Ma77Ball:test/workspaceComponentChildRendering
Open

test: enable child rendering in WorkspaceComponent spec#5037
Ma77Ball wants to merge 2 commits into
apache:mainfrom
Ma77Ball:test/workspaceComponentChildRendering

Conversation

@Ma77Ball
Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Drops the <div #codeEditor> template stub from WorkspaceComponent's unit spec so the real workspace.component.html renders. Heavyweight children (workflow editor, panels, menu) are kept out of the test build by stripping
the component's imports/providers and adding CUSTOM_ELEMENTS_SCHEMA, leaving the <ng-template #codeEditor> outlet free to wire a live ViewContainerRef into CodeEditorService.vc. A new child rendering side effects describe block asserts that the editor-lifecycle wiring runs end-to-end (the published outlet is a real ViewContainerRef, proven by createEmbeddedView being a function on it).

Any related issues, documentation, or discussions?

Closes: #5015

How was this PR tested?

  • yarn test --include="src/app/workspace/component/workspace.component.spec.ts" --watch=false: 20/20 pass (19 prior tests preserved, 1 new).
  • yarn test --watch=false: full suite 445 passed, 2 skipped, 2 todo (no regressions).
  • yarn format:fix: no rewrites.

Was this PR authored or co-authored using generative AI tooling?

Co-authored with Claude Opus 4.7 in compliance with ASF

@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label May 12, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 42.73%. Comparing base (7879c2a) to head (ff995df).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #5037   +/-   ##
=========================================
  Coverage     42.73%   42.73%           
  Complexity     2191     2191           
=========================================
  Files          1045     1045           
  Lines         39979    39979           
  Branches       4218     4218           
=========================================
  Hits          17087    17087           
  Misses        21835    21835           
  Partials       1057     1057           
Flag Coverage Δ *Carryforward flag
access-control-service 39.53% <ø> (ø) Carriedforward from 7879c2a
agent-service 33.72% <ø> (ø) Carriedforward from 7879c2a
amber 43.38% <ø> (ø) Carriedforward from 7879c2a
computing-unit-managing-service 0.00% <ø> (ø) Carriedforward from 7879c2a
config-service 0.00% <ø> (ø) Carriedforward from 7879c2a
file-service 32.18% <ø> (ø) Carriedforward from 7879c2a
frontend 34.04% <ø> (ø)
python 88.90% <ø> (ø) Carriedforward from 7879c2a
workflow-compiling-service 47.72% <ø> (ø) Carriedforward from 7879c2a

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Ma77Ball
Copy link
Copy Markdown
Contributor Author

/request-review @mengw15

@github-actions github-actions Bot requested a review from mengw15 May 12, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable full child rendering in WorkspaceComponent spec

2 participants