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

Set up wallaby and add a feature test #322

Merged
merged 1 commit into from
Feb 24, 2025
Merged

Set up wallaby and add a feature test #322

merged 1 commit into from
Feb 24, 2025

Conversation

hackartisan
Copy link
Member

@hackartisan hackartisan commented Feb 21, 2025

Followed the instructions in the wallaby readme, using chromdriver
because that seems to be the most common setup that works well for
people, based on looking around the elixir forum

I added a new mix alias for running tests in ci because you have to
ensure that js is built otherwise liveview stuff doesn't work. there may
be a day when we need to also add the css assets?

Finally, I skipped everything in the setup about running tests async and
ensuring database connections don't mess with one another. We may need
to do that stuff at some point.

Note that failing feature tests will add a screenshot artifact

closes #311

Copy link

github-actions bot commented Feb 21, 2025

Container Scanning Status: ✅ Success


ghcr.io/pulibrary/dpul-collections:pr-322 (debian 12.6)
=======================================================
Total: 0 (HIGH: 0, CRITICAL: 0)

@hackartisan hackartisan force-pushed the 311-wallaby branch 4 times, most recently from 103b386 to a753afd Compare February 24, 2025 17:43
Followed the instructions in the wallaby readme, using chromdriver
because that seems to be the most common setup that works well for
people, based on looking around the elixir forum

I added a new mix alias for running tests in ci because you have to
ensure that js is built otherwise liveview stuff doesn't work. there may
be a day when we need to also add the css assets?

Finally, I skipped everything in the setup about running tests async and
ensuring database connections don't mess with one another. We may need
to do that stuff at some point.

Note that failing feature tests will add a screenshot artifact

closes #311
@hackartisan hackartisan marked this pull request as ready for review February 24, 2025 18:08
Copy link
Contributor

@tpendragon tpendragon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was able to get this to run locally, looks great!

@sdellis sdellis merged commit a8bfa71 into main Feb 24, 2025
4 checks passed
@sdellis sdellis deleted the 311-wallaby branch February 24, 2025 21:58
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.

Set Up Wallaby for Client-Side Feature Tests
3 participants