Skip to content

test: serval admin: clarify the non-null initial emit in date range picker - #4080

Open
marksvc wants to merge 1 commit into
masterfrom
task/drp-test
Open

test: serval admin: clarify the non-null initial emit in date range picker#4080
marksvc wants to merge 1 commit into
masterfrom
task/drp-test

Conversation

@marksvc

@marksvc marksvc commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Test "should not emit undefined for a range if the default is defined"
starts listening for emits after the a non-null date range is emitted,
and it could be misleading to then assert that there was no emit.

This patch changes the test to start listening earlier, and assert
that there was a non-null emit, which will hopefully make it more
plain.

Follow-up to #4024.


Open in Devin Review


This change is Reviewable

@marksvc
marksvc marked this pull request as draft August 31, 2026 17:22
@marksvc
marksvc marked this pull request as ready for review August 31, 2026 17:28
@marksvc

marksvc commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator Author

@RaymondLuong3 I made an adjustment to the test from your #4024. What do you think about this?

@marksvc
marksvc requested a review from RaymondLuong3 August 31, 2026 17:28
@marksvc
marksvc deployed to screenshot_diff August 31, 2026 17:29 — with GitHub Actions Active
@codecov

codecov Bot commented Aug 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.25%. Comparing base (277afb7) to head (efe66eb).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4080   +/-   ##
=======================================
  Coverage   81.25%   81.25%           
=======================================
  Files         670      670           
  Lines       43465    43465           
  Branches     7131     7104   -27     
=======================================
  Hits        35319    35319           
- Misses       6961     6976   +15     
+ Partials     1185     1170   -15     

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

…icker

Test "should not emit undefined for a range if the default is defined"
starts listening for emits after the a non-null date range is emitted,
and it could be misleading to then assert that there was no emit.

This patch changes the test to start listening earlier, and assert
that there was a non-null emit, which will hopefully make it more
plain.

Follow-up to #4024.
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

📸 Screenshot diff deployed! (1 change)

View the visual diff at: https://pr-4080--sf-screenshot-diffs.netlify.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants