-
Notifications
You must be signed in to change notification settings - Fork 8
Add screenshot tests #330
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 screenshot tests #330
Conversation
- Chrome prevents using http. We need to start a https server - In docker services, the network is called using the service name. We need to allow all hosts to access the dev server
Fix docker test network issue
docker-compose up -d | ||
docker-compose run --rm wdio | ||
|
||
- name: Archive screenshots |
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.
Do we have something similar to public https://github.com/oncokb/oncokb-public/blob/master/.github/workflows/screenshot-test.yml#L20-L31 to compare latest/base?
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.
We do. I save the entire screenshots folder which contains the image that was just taken, the baseline image, and the diff
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, thanks
The only thing to note is that the file
screenshot.ts
is a work in progress. The entire commented out section needs to be added back, but I removed it for now to isolate the SSL certificate error.