Skip to content

test(web): replace AP32 owner doubles with real UI behavior - #45342

Merged
hyoban merged 1 commit into
mainfrom
test/web-cleanup-20261102-2217-b1
Nov 2, 2026
Merged

hyoban merged 1 commit into
mainfrom
test/web-cleanup-20261102-2217-b1

Conversation

@hyoban

@hyoban hyoban commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Existing tests fabricate template success, approval submissions, mention IDs and run-viewer output through child doubles. Keep the real owners and assert actual forms, selected traces, readonly serialized data, masked secrets and streaming action availability.

Refactor 10 existing specs (AP32), retaining the existing behavior scope and dropping redundant or mock-only cases. Network responses stay at service/generated console boundaries; the shared Monaco SDK adapter remains the only editor replacement. No new cases, helpers, production changes or lockfile changes.

Existing spec AP / area Result
app/components/app/create-app-dialog/__tests__/index.spec.tsx AP32 / app/create-app-dialog Exercise real template catalog/import form and generated service operations; prove the edited name/DSL, completion dismissal and real blank action.
app/components/app/text-generate/item/__tests__/workflow-body.spec.tsx AP32 / app/text-generate/item Exercise real approval fields/actions and Markdown/JSON result tabs through a controlled caller; prove actual token/action/input submission.
app/components/workflow/comment/comment-input.spec.tsx AP32 / workflow Seed real mentionable-user state, choose Bob in the actual editor, and prove parsed user IDs plus draft reset.
app/components/workflow/nodes/_base/components/workflow-panel/last-run/__tests__/index.spec.tsx AP32 / workflow Keep real last-run query/ResultPanel; prove deferred output, 404 action, paused/stopped status and applied visibility restoration.
app/components/base/message-log-modal/__tests__/index.spec.tsx AP32 / base/message-log-modal Keep real Run/Tracing viewer; prove selected run service URLs, visible execution, selected tracing tab, hidden Result tab and dismissal.
app/components/workflow/run/__tests__/result-panel.spec.tsx AP32 / workflow Keep real CodeEditor; verify semantic input/process/output data, readonly controls and actual truncation/export affordances.
app/components/workflow/run/loop-log/__tests__/loop-result-panel.spec.tsx AP32 / workflow Keep real loop-variable editor; verify readonly values from execution-metadata keys, including parallel runs, through real disclosure controls.
app/components/base/agent-log-modal/__tests__/result.spec.tsx AP32 / base/agent-log-modal Keep real result editors; verify serialized input/output values and readonly controls alongside execution metadata.
app/components/plugins/plugin-page/__tests__/debug-info.spec.tsx AP32 / plugins/plugin-page Keep real debug-key query and KeyValueItem; verify loaded/disabled triggers, actual address and masked secret display.
app/components/base/chat/chat/__tests__/index.spec.tsx AP32 / base/chat/chat Keep real answers; verify displayed conversation order and available copy actions before and after streaming completes.

Validation: 51 existing unit cases + the interactive-mock boundary guard pass; targeted vp check, full Web type-check, complete repository check and normal commit hooks pass (0 errors; 1226 existing root warnings). All 13 mutation probes fail as intended; production files restored byte-for-byte. Net 158 lines removed.

@github-actions github-actions Bot added size:XL This PR changes 500-999 lines, ignoring generated files. web This relates to changes on the web. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Nov 2, 2026
@codecov

codecov Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.77%. Comparing base (96b1b20) to head (69d19ab).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #45342      +/-   ##
==========================================
- Coverage   89.77%   89.77%   -0.01%     
==========================================
  Files        6239     6239              
  Lines      390902   390902              
  Branches    79285    79285              
==========================================
- Hits       350932   350929       -3     
- Misses      33872    33875       +3     
  Partials     6098     6098              
Flag Coverage Δ
dify-ui 92.39% <ø> (ø)
web 89.75% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions github-actions Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Nov 2, 2026
@hyoban
hyoban marked this pull request as ready for review November 2, 2026 14:51
@hyoban
hyoban added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit c00dc71 Nov 2, 2026
95 checks passed
@hyoban
hyoban deleted the test/web-cleanup-20261102-2217-b1 branch November 2, 2026 15:00
@hyoban hyoban added the test-cleanup Web test cleanup / Browser Mode migration label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL This PR changes 500-999 lines, ignoring generated files. test-cleanup Web test cleanup / Browser Mode migration web This relates to changes on the web.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants