Skip to content

test(web): replace fabricated access controls and result renderers - #45263

Merged
hyoban merged 1 commit into
mainfrom
test/web-cleanup-20261101-2210-b1
Nov 1, 2026
Merged

hyoban merged 1 commit into
mainfrom
test/web-cleanup-20261101-2210-b1

Conversation

@hyoban

@hyoban hyoban commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

The access-point tests could pass using a fabricated permission Save button and an API-key button that copied the permission gate. Text-generation tests recorded child props instead of rendering results. Keep the real forms, queries, result renderers and CSV download, with service responses at the console/share boundaries.

  • app/access-point (2 existing specs, AP32): verify app-scoped ACL save and refreshed Open access; exercise the real key dialog/list and disabled management controls.
  • share/text-generation (2 existing specs, AP32): verify actual single/batch text, CSV bytes, failed-only retry requests, stop behavior and displayed execution IDs. Advance the real timeout with fake timers. Drop the private-class mobile handle case.
  • Tests only; 39 existing cases become 38. No new cases or coverage backfill.

Validation: touched unit specs (38 passed), targeted vp check, Web type-check, root check, and 8/8 caught mutations with byte-for-byte production restoration.

@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. labels Nov 1, 2026
@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.85%. Comparing base (262158c) to head (6239e68).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #45263      +/-   ##
==========================================
- Coverage   89.86%   89.85%   -0.01%     
==========================================
  Files        6251     6251              
  Lines      398243   398243              
  Branches    80273    80273              
==========================================
- Hits       357868   357861       -7     
- Misses      34064    34071       +7     
  Partials     6311     6311              
Flag Coverage Δ
dify-ui 92.64% <ø> (ø)
web 89.84% <ø> (-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 November 1, 2026 14:31
@hyoban
hyoban requested review from iamjoel and zxhlyh as code owners November 1, 2026 14:31
@hyoban
hyoban added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit bc940af Nov 1, 2026
59 checks passed
@hyoban
hyoban deleted the test/web-cleanup-20261101-2210-b1 branch November 1, 2026 14:39
@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