[PR #32282] test: header account about, account setting and account dropdown #33648

Closed
opened 2026-02-21 20:53:39 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/32282

State: closed
Merged: No


Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it

Summary

  • Tests
    • Expanded unit test coverage for header and account settings: dropdowns, about/support/compliance dialogs, workplace selector, integrations, API-based extension pages (list, item, modal, selector), collapse/menu dialogs, constants, and account setting flows.
    • Adds interaction, edge-case, plan/edition, success/failure, modal, and accessibility keyboard tests for rendering and behavior.

Report

File Statements Branches Functions Lines
header/account-about 100% (5/5) 100% (11/11) 100% (2/2) 100% (4/4)
header/account-dropdown 100% (68/68) 100% (31/31) 100% (17/17) 100% (67/67)
header/account-dropdown/workplace-selector 100% (18/18) 100% (4/4) 100% (6/6) 100% (16/16)
header/account-setting 100% (58/58) 100% (41/41) 100% (17/17) 100% (56/56)
header/account-setting/Integrations-page 100% (10/10) 100% (6/6) 100% (2/2) 100% (10/10)
header/account-setting/api-based-extension-page 100% (75/75) 100% (45/45) 100% (28/28) 100% (72/72)
header/account-setting/collapse 100% (7/7) 100% (4/4) 100% (4/4) 100% (5/5)

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint and make type-check (backend) and cd web && npx lint-staged (frontend) to appease the lint gods

Summary by CodeRabbit

  • Tests
    • Added comprehensive unit tests for header and account-related UI: AccountAbout, AccountDropdown (including Compliance, Support, Workplace selector), AccountSetting (menus, tabs, Collapse, MenuDialog), Integrations, and API-based extension pages (Empty, Index, Item, Modal, Selector), plus constants and utilities.
**Original Pull Request:** https://github.com/langgenius/dify/pull/32282 **State:** closed **Merged:** No --- > [!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 1. Ensure there is an associated issue and you have been assigned to it ## Summary * **Tests** * Expanded unit test coverage for header and account settings: dropdowns, about/support/compliance dialogs, workplace selector, integrations, API-based extension pages (list, item, modal, selector), collapse/menu dialogs, constants, and account setting flows. * Adds interaction, edge-case, plan/edition, success/failure, modal, and accessibility keyboard tests for rendering and behavior. *Report* | File | Statements | Branches | Functions | Lines | |---------------------------------------------------|------------|----------|-----------|--------| | header/account-about | 100% (5/5) | 100% (11/11) | 100% (2/2) | 100% (4/4) | | header/account-dropdown | 100% (68/68) | 100% (31/31) | 100% (17/17) | 100% (67/67) | | header/account-dropdown/workplace-selector | 100% (18/18) | 100% (4/4) | 100% (6/6) | 100% (16/16) | | header/account-setting | 100% (58/58) | 100% (41/41) | 100% (17/17) | 100% (56/56) | | header/account-setting/Integrations-page | 100% (10/10) | 100% (6/6) | 100% (2/2) | 100% (10/10) | | header/account-setting/api-based-extension-page | 100% (75/75) | 100% (45/45) | 100% (28/28) | 100% (72/72) | | header/account-setting/collapse | 100% (7/7) | 100% (4/4) | 100% (4/4) | 100% (5/5) | ## Screenshots | Before | After | |--------|-------| | ... | ... | ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `make lint` and `make type-check` (backend) and `cd web && npx lint-staged` (frontend) to appease the lint gods <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Added comprehensive unit tests for header and account-related UI: AccountAbout, AccountDropdown (including Compliance, Support, Workplace selector), AccountSetting (menus, tabs, Collapse, MenuDialog), Integrations, and API-based extension pages (Empty, Index, Item, Modal, Selector), plus constants and utilities. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
yindo added the pull-request label 2026-02-21 20:53:39 -05:00
yindo closed this issue 2026-02-21 20:53:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33648