Skip to content

[gui] Flutter unit tests: Dropdown and Confirm dialog tests - #5385

Open
sharder996 wants to merge 5 commits into
mainfrom
feature/flutter-unit-tests-part3
Open

sharder996 wants to merge 5 commits into
mainfrom
feature/flutter-unit-tests-part3

Conversation

@sharder996

Copy link
Copy Markdown
Collaborator

This PR is the next in line for adding unit testing in the GUI. This time we test the custom Dropdown used in the GUI and the Confirmation dialog.

Some edits were made to the GUI production code in order to cover some edge cases that were previously uncovered.


MULTI-2521

Copilot AI lite review requested due to automatic review settings October 7, 2026 20:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues were identified.

0 open findings

What changed in this PR

Adds Flutter widget tests for the custom dropdown and confirmation dialog, with safer handling of invalid dropdown values.

Changes:

  • Tests dropdown rendering, interaction, sizing, disabled state, and edge cases.
  • Tests confirmation dialog callbacks and dismissal.
  • Ignores invalid dropdown values safely.
File Description
src/​client/​gui/​test/​dropdown_test.dart Dropdown widget coverage
src/​client/​gui/​test/​confirmation_dialog_test.dart Confirmation dialog coverage
src/​client/​gui/​lib/​dropdown.dart Invalid-value handling

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sharder996
sharder996 requested review from a team and jimporter and removed request for a team October 7, 2026 20:19
@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.19%. Comparing base (45012c1) to head (2f8e54d).
⚠️ Report is 384 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5385      +/-   ##
==========================================
+ Coverage   72.26%   75.19%   +2.93%     
==========================================
  Files         347      353       +6     
  Lines       20627    22446    +1819     
==========================================
+ Hits        14905    16876    +1971     
+ Misses       5722     5570     -152     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sharder996
sharder996 marked this pull request as draft October 21, 2026 14:30
@sharder996
sharder996 marked this pull request as ready for review October 21, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants