navapbc / template-application-rails

Ruby on Rails with USWDS template, including CI/CD, for teams building web applications
Apache License 2.0
2 stars 1 forks source link

e2e tests #51

Closed acouch closed 3 months ago

acouch commented 3 months ago

e2e tests are a useful tool for testing the end result of UI interactions that are missed by unit tests. This issue is to identify a preferred e2e testing suite or pros and cons for options for teams using this tool, and add some basic tests to get teams started.

Describe the solution you'd like

It looks like two options are:

Playwright

A number of teams use Playwright

Pros

Cons

Capybara

After brief googling, it looks like Capybara is a popular solution for Rails projects.

Pros

Cons

I don't know having never used it

Additional context

If the group wants to pick an option I'd be happy to implement but will not have capacity once grants.gov starts up again.

Priority

None

rocketnova commented 3 months ago

@acouch What good timing! We just merged in playwright to handle end-to-end testing in the infra template. We decided that end-to-end testing is something we want for most projects and they are largely application-stack agnostic, so we've put it in the infra template. I'm going to make this issue as closed, but please feel free to re-open if you disagree or have alternate suggestions!

See https://github.com/navapbc/template-infra/pull/694.