Skip to content

test(web): exercise configuration modals through real providers - #44702

Merged
hyoban merged 1 commit into
mainfrom
test/web-cleanup-20261024-1705
Oct 25, 2026
Merged

hyoban merged 1 commit into
mainfrom
test/web-cleanup-20261024-1705

Conversation

@hyoban

@hyoban hyoban commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Replace captured modal callbacks and the fake prompt-generator button with real modal providers, forms, and result confirmation. Existing scenarios now verify saved variable rows, editor text, feature state, cancellation, and service payloads. Consolidates redundant cases; test-only changes with no gap backfill.

  • base/features/new-feature-panel/conversation-opener: AP3/AP32 — real editor and modal save/cancel instead of invoking captured callbacks.
  • base/features/new-feature-panel/moderation: AP25/AP32 — seeded feature state and real settings forms, including preserving concurrent feature updates.
  • app/configuration/config-var: AP3/AP32 — live variable list, real API/basic edit dialogs, cancellation, duplicate validation, and event delivery.
  • app/configuration/config-prompt/simple-prompt-input: AP3/AP32 — real external-tool and generation dialogs; service boundary responses replace fabricated UI.

The shared helper only composes existing providers, accepts initial features/query data, and returns the real stores; it registers no global test behavior.

Validation: 38 touched tests + interactive mock-boundary guard; targeted vp check, Web type-check, full root check, and normal commit hooks pass. All 10 temporary production mutations fail the intended assertions; production files restored. Codecov project: 89.30% (+0.00 percentage points), project and patch checks pass.

@github-actions github-actions Bot added web This relates to changes on the web. size:XXL This PR changes 1000+ lines, ignoring generated files. labels Oct 24, 2026
@codecov

codecov Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.30%. Comparing base (b535806) to head (f4ac5cb).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #44702   +/-   ##
=======================================
  Coverage   89.30%   89.30%           
=======================================
  Files        5985     5985           
  Lines      375003   375003           
  Branches    76056    76056           
=======================================
+ Hits       334892   334910   +18     
+ Misses      34076    34058   -18     
  Partials     6035     6035           
Flag Coverage Δ
dify-ui 92.38% <ø> (ø)
web 89.22% <ø> (+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.

@hyoban
hyoban marked this pull request as ready for review October 25, 2026 02:33
@hyoban
hyoban added this pull request to the merge queue Oct 25, 2026
Merged via the queue into main with commit 1d3e51f Oct 25, 2026
56 checks passed
@hyoban
hyoban deleted the test/web-cleanup-20261024-1705 branch October 25, 2026 02:41
@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:XXL This PR changes 1000+ 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