-
Notifications
You must be signed in to change notification settings - Fork 2
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 frontend tests #71
Conversation
Signed-off-by: Brandon Yee <6111102+Firebird1029@users.noreply.github.com>
da7406c
to
81cc828
Compare
Signed-off-by: Brandon Yee <6111102+Firebird1029@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solid work Brandon 🔥 Definitely would like to get Pat's thoughts on the download test before we merge this in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great! I have a few comments but in general I was able to run this easily and the tests seam reasonable
Signed-off-by: Brandon Yee <6111102+Firebird1029@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work on this! One thing I'm realizing I missed is adding this to the GitHub Actions frontend-checks
. There may be separate issues with that though, so it could make the most sense to add in a separate PR
Yeah, I discussed it with Natalia, I originally added it to frontend-checks but couldn't figure it out since Electron requires a GUI to test but the Ubuntu Github Actions servers don't have GUIs by default. Should be possible but might need some time to figure out. |
@Firebird1029 let's definitely split this out, but you should be able to use a headless browser specifically for this, and playwright has built-in support. Happy to set up some time to talk through it a bit more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙌
Add frontend tests
Problem
Currently, the Electron app frontend lacks frontend tests.
Solution
This PR adds some frontend tests to ensure the Electron app works correctly.
Result
To run the tests:
To install the tests (once):
cd frontend npm install npx playwright install