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

Spec: Provide a starter for end-to-end testing #268

Closed
sawyerh opened this issue Dec 13, 2023 · 5 comments
Closed

Spec: Provide a starter for end-to-end testing #268

sawyerh opened this issue Dec 13, 2023 · 5 comments
Assignees

Comments

@sawyerh
Copy link
Contributor

sawyerh commented Dec 13, 2023

What's the task?

End-to-end (E2E) test suites are common across our projects, but no templates currently provide this functionality. Let's spec out what it might look like for Platform to provide some support to teams setting up an end-to-end test suite. There are a number of open questions, such as what repo the E2E code should live within and how the tests would run.

References

Some existing references from prior projects

Resources

@sawyerh sawyerh added this to the End-to-end testing milestone Dec 13, 2023
@jcq
Copy link
Contributor

jcq commented Jan 5, 2024

The other thing to consider is that we can do "E2E" testing of sorts with just the FE/NextJS code. For instance, we can't fully test the language-switching functionality in a component unit test, as the actual switch of the locale requires the execution of the related middleware. We could cover this use case w/ something like Playwright tests (see example).

@sbolel
Copy link

sbolel commented Jan 17, 2024

@jcq Playwright is a great option! Happy to help if going down that route is deemed appropriate and feasible.

@rocketnova
Copy link
Contributor

@sawyerh I asked Sasha to build out Playwright e2e testing into the Remix template we made for the WIC PRP project. I think there's a ton of reusable work there: https://github.com/navapbc/remix-shoegaze-stack

@kniedermaier
Copy link

I've written up a 🔒 Tech Spec that addresses many of this issue's open questions. Thanks to @sawyerh for weighing in on that document. Its current status is "ready for review", so feedback is entirely welcome.

@sawyerh sawyerh closed this as completed Apr 19, 2024
@sawyerh sawyerh reopened this Apr 19, 2024
@sawyerh
Copy link
Contributor Author

sawyerh commented Apr 24, 2024

navapbc/platform#22

@sawyerh sawyerh closed this as completed Apr 24, 2024
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

No branches or pull requests

5 participants