Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add landing page request tests to increase test coverage #4272

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

leenagupte
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Modifies the request tests to use the new example landing page from content-schemas, and adds a test to check that the page renders when the fake data in the controller is used.

Why

There are two ways that a landing page can be loaded. One is from a content item, and one is by using the fake data in the controller. We were only testing data from a content item.

There are two ways that a landing page can be loaded. One is from a
content item, and one is by using the fake data in the controller.

This adds modifies the request tests to use the new example landing page
from content-schemas, and adds a test to check that the page
renders when the fake data in the controller is used.
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4272 October 11, 2024 11:52 Inactive
@leenagupte leenagupte merged commit 89fe301 into main Oct 11, 2024
13 checks passed
@leenagupte leenagupte deleted the add-request-tests-using-content-item branch October 11, 2024 13:15
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.

3 participants