Repository navigation
test(web): exercise feature settings through real browser owners - #46102
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #46102 +/- ##
=======================================
Coverage 90.14% 90.14%
=======================================
Files 6307 6307
Lines 394780 394780
Branches 79187 79187
=======================================
+ Hits 355873 355881 +8
+ Misses 32790 32782 -8
Partials 6117 6117
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hyoban
marked this pull request as ready for review
November 12, 2026 02:14
hyoban
requested review from
CodingOnStar,
iamjoel,
lyzno1 and
zxhlyh
as code owners
November 12, 2026 02:14
lyzno1
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The legacy feature-setting tests asserted callbacks or fabricated catalogs/players, and repeated child-layer scenarios. This cleanup audits 11 unit specs plus the existing Follow-up browser spec, consolidating them into 9 browser behavior domains with real feature stores, controls, catalogs and query owners. Follow
web/docs/test.md.Per-file quality changes (paths below share
web/app/components/base/features/new-feature-panel/):file-upload/__tests__/index.spec.tsxfile-upload/__tests__/setting-content.spec.tsxfile-upload/__tests__/setting-modal.spec.tsximage-upload/__tests__/index.spec.tsxtext-to-speech/__tests__/index.spec.tsxtext-to-speech/__tests__/voice-settings.spec.tsxtext-to-speech/__tests__/param-config-content.spec.tsx__tests__/follow-up.spec.tsx__tests__/follow-up-setting-modal.spec.tsx__tests__/follow-up.browser.spec.tsxannotation-reply/__tests__/annotation-ctrl-button.spec.tsxannotation-reply/__tests__/config-param-modal.spec.tsxShared feature render and model-query presets are side-effect-free on import. Every retained mock is a documented router or HTTP boundary. No production changes, runner duplicates, allowlist additions or large files.
Scenario audit: redundant render/callback/child-layer rows were merged. Empty mocked language catalogs and a mocked catalog without sample text were dropped: the production static catalog is nonempty and supplies the rendered samples; manufacturing an absent catalog is outside this product contract. No race, rollback, queued-save, remote-sync or remote-response scenario was deleted. Pending saves, close protection, rejection recovery, retry, and existing keyboard ownership remain through public journeys. No feature-gap backfill.
Validation:
vp run -w checkand Web type-check pass.Remediation: the original 8 queue files remain occupied by open PRs; PAT remediation also requires the policy file currently occupied by #46058. None of those paths is changed. Initial inventory checked 679 open PRs / 13,487 fully expanded paths; final refresh checked 678 / 13,485, with zero changed-path conflicts.
Production issue: #46103 (annotation quota Close is covered by GridMask content; existing close case retained as
it.fails). Guide PR: none needed; existing test.md covers the findings.Final CI: https://github.com/langgenius/dify/actions/runs/43046916146 — all Actions green; required checks 9 success / 2 configured skips. WebKit smoke and Chromium E2E 1/3 initially failed downloading the prebuilt Web artifact before tests started; one failed-jobs-only rerun passed. No CI source-fix round.
Codecov Web data is complete (12/12 sessions): 90.14%, displayed +0.00% versus main, +8 covered lines. The optional GitHub
codecov/project/webpublication is still pending although the reports are complete; patch and other project contexts pass. No padding, empty commit or coverage-upload rerun. Final headd4f5661b06; 3 ahead / 0 behind latest main; clean and matching local/origin/PR heads.