Skip to content

Add smoke test form to database seed#2892

Open
lfdebrux wants to merge 2 commits into
mainfrom
ldeb-add-smoke-test-form
Open

Add smoke test form to database seed#2892
lfdebrux wants to merge 2 commits into
mainfrom
ldeb-add-smoke-test-form

Conversation

@lfdebrux

@lfdebrux lfdebrux commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

In each environment in AWS we have a smoke test form which is used by the tests in the forms-e2e-tests repo. This commit adds a form with the same setup as what is in the production environment to our database seed. We also add a smoke tests group to the database seed, again matching what we have in production.

Note that the forms-e2e-tests repo can't use the "All question types form" for the smoke tests, as it currently doesn't know how to answer all question types.

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

lfdebrux added 2 commits July 14, 2026 11:16
By default a question should be not optional and not repeatable. We
shouldn't need to specify `is_optional: false` every time we create a
`Page`.

This commit updates the default in the database column, and updates our
database seed to be less verbose.
In each environment in AWS we have a smoke test form which is used by
the tests in the forms-e2e-tests repo. This commit adds a form with the
same setup as what is in the production environment to our database
seed. We also add a smoke tests group to the database seed, again
matching what we have in production.

Note that the forms-e2e-tests repo can't use the "All question types
form" for the smoke tests, as it currently doesn't know how to answer
all question types.
@lfdebrux lfdebrux force-pushed the ldeb-add-smoke-test-form branch from 563c77a to 85f7266 Compare July 14, 2026 08:18
@github-actions

Copy link
Copy Markdown

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2892.admin.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

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.

1 participant