Skip to content

Conversation

thomasleese
Copy link
Contributor

This updates a number of tests that are now failing due to the current date being outside the preparation period. Where possible I've tried to avoid freezing time, but in most cases it's necessary to make sure we're always testing inside or outside a preparation period.

This has been renamed to `govuk_back_link`, but actually we don't need
it since this page has breadcrumbs.
Using this for booleans results in a warning explaining that it can't
fully be tested due to type conversions.
This updates a number of tests that are now failing due to the current
date being outside the preparation period. Where possible I've tried to
avoid freezing time, but in most cases it's necessary to make sure we're
always testing inside or outside a preparation period.
@thomasleese thomasleese added this to the v3.4.0 milestone Sep 1, 2025
@thomasleese thomasleese requested a review from a team as a code owner September 1, 2025 07:37
@thomasleese thomasleese added the refactor Improving maintainability label Sep 1, 2025
This ensures that when creating a session in the seeds, the date fits
within the range of suitable dates for the current academic year. This
fixes running the tests on the first and last day of the preparation
period.
Copy link

sonarqubecloud bot commented Sep 1, 2025

@thomasleese thomasleese merged commit 934680b into next Sep 1, 2025
12 of 13 checks passed
@thomasleese thomasleese deleted the fix-tests-outside-preparation-period branch September 1, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improving maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants