-
Notifications
You must be signed in to change notification settings - Fork 1
Fix integration tests #380
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
Conversation
churnikov
left a comment
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.
I'll be honest, I did not really read into it, because it seems like it's mostly style changes and added .should("be.visible") calls.
So I don't have much to say here, and if tests pass, then lgtm.
One request though, I don't see in the readme instructions on how to run integration tests. Could we add it there?
Yes there are many such changes. I also added a test that reproduces some shiny proxy app status problems. This test may now intentionally fail before a future fix is in place.
I see that our README has no mention of tests at all. I will add a section and mention this. |
README.md
Outdated
|
|
||
| ### End2End tests | ||
|
|
||
| UI end2end tests and Integration tests use the [Cypress](https://www.cypress.io/) framework and are implemented in javascript. The UI end2end are automatically executed as part of git workflows. You may also run them manually in this manner after first installing Cypress on your machine: |
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.
I think it's worth mentioning that this requires a running instance of serve on a local machine.
Description
This PR fixes two failing integration tests. One test lacked proper visibility verifications around a model and nested button. The other test failed caused by missing required app description. Also added many should('be.visible') clauses to make tests more robust and also cleaned up some comments. I also converted one obsolete test to test that redeploy of shiny apps works in regards to the app status when changing the docker image. This test may fail until the app status code fixes this.
For some background, see Jira link
Checklist