Skip to content

MPT-19805 Fixes for 1st day of month failing tests#393

Merged
SteveChurchillSWO merged 1 commit intomainfrom
fix/MPT-19805-fix-tests-failing-on-first-day-of-month
Apr 7, 2026
Merged

MPT-19805 Fixes for 1st day of month failing tests#393
SteveChurchillSWO merged 1 commit intomainfrom
fix/MPT-19805-fix-tests-failing-on-first-day-of-month

Conversation

@SteveChurchillSWO
Copy link
Copy Markdown

Description

Make E2E tests resilient when run on the first day of a month by switching date ranges to "Last 7 days" where the API would otherwise return empty data if run before the first billing import. Imported getLast7DaysUnixRange and added currentDate checks in multiple expenses test suites to selectLast7DaysDateRange in beforeEach and to use the last-7-days unix range for API validation on day 1. Also changed several assertions to soft expectations to reduce flakes, and updated the resources test to accept datePicker and switch to Last 7 days when needed. These changes prevent false negatives caused by no data on the first day of a month.

Related issue number

https://softwareone.atlassian.net/browse/MPT-19805

Make E2E tests resilient when run on the first day of a month by switching date ranges to "Last 7 days" where the API would otherwise return empty data. Imported getLast7DaysUnixRange and added currentDate checks in multiple expenses test suites to selectLast7DaysDateRange in beforeEach and to use the last-7-days unix range for API validation on day 1. Also changed several assertions to soft expectations to reduce flakes, and updated the resources test to accept datePicker and switch to Last 7 days when needed. These changes prevent false negatives caused by no data on the first day of a month.
@SteveChurchillSWO SteveChurchillSWO merged commit 2b75585 into main Apr 7, 2026
42 checks passed
@SteveChurchillSWO SteveChurchillSWO deleted the fix/MPT-19805-fix-tests-failing-on-first-day-of-month branch April 7, 2026 10:21
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