Skip to content

test(web): exercise real snippet, workflow and publishing owners - #44924

Merged
hyoban merged 2 commits into
mainfrom
test/web-cleanup-20261028-1103-b1
Nov 3, 2026
Merged

hyoban merged 2 commits into
mainfrom
test/web-cleanup-20261028-1103-b1

Conversation

@hyoban

@hyoban hyoban commented Oct 28, 2026

Copy link
Copy Markdown
Member

Existing tests replaced query/store owners and interactive children with canned results or artificial buttons, so they could pass without the real state transition. This refactors seven existing specs to exercise snippet queries and creation, workflow delivery methods, strategy installation, prompt-to-canvas navigation, dataset chunk edits, and publishing/restoration through their real owners.

  • Keep mocks at service, navigation and browser boundaries. Assert rendered results, accessible control state, real store changes and submitted payloads; use existing providers and valid fixtures.
  • Merge redundant cases and remove fabricated retry-focus and silent-publish scenarios. No new specs, coverage backfill or production changes.
  • Advance search debounces with restored fake timers; give canvas navigation explicit dimensions. Wait for the lazy strategy list before enabling search timers.

Validation: 53 focused tests pass across the seven specs and the interactive mock-boundary guard; targeted vp check, full repository check and Web type-check pass. All 16 targeted production mutations fail at the expected behavior assertions, with production files restored byte-for-byte afterward.

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

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.63%. Comparing base (8d812b9) to head (730f3e3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #44924      +/-   ##
==========================================
- Coverage   89.77%   89.63%   -0.14%     
==========================================
  Files        6239     6098     -141     
  Lines      390924   381283    -9641     
  Branches    79291    78361     -930     
==========================================
- Hits       350950   341782    -9168     
+ Misses      33875    33523     -352     
+ Partials     6099     5978     -121     
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.

@hyoban
hyoban marked this pull request as ready for review October 28, 2026 03:29
@github-actions github-actions Bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Oct 28, 2026
lyzno1
lyzno1 previously approved these changes Oct 28, 2026
@hyoban
hyoban added this pull request to the merge queue Oct 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 28, 2026
…1028-1103-b1

# Conflicts:
#	web/app/components/snippet-list/__tests__/index.spec.tsx
@hyoban
hyoban added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 1df4a08 Nov 3, 2026
54 checks passed
@hyoban
hyoban deleted the test/web-cleanup-20261028-1103-b1 branch November 3, 2026 02:12
@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