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

Three-page "who" form section #99

Merged
merged 12 commits into from
Sep 26, 2024
Merged

Three-page "who" form section #99

merged 12 commits into from
Sep 26, 2024

Conversation

neilmb
Copy link
Member

@neilmb neilmb commented Sep 19, 2024

This is an initial construction of our three page "who" section of the special uses form. It implements some of the conditional logic from our content design, but we only have the page 2 content for a corporation, not for a partnership or agency. It also doesn't currently have the code to replace the word "entity" on page 2 with the particular entity type that people responded with on page 1, but the occurrences that need to be subbed out are marked with <span class="entity-type"> so it should be straightforward to code up a handler to replace those at page load time.

The conditional logic also got complicated enough that it is worth including a testing library for the behavior of the page. We use Cypress for end-to-end testing and define our desired behaviors in cypress/e2e/*.cy.js. We also run those tests now in our CI/CD job.

@neilmb neilmb merged commit f6e96b1 into main Sep 26, 2024
2 of 4 checks passed
@neilmb neilmb deleted the nmb/88-who branch September 26, 2024 19:30
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