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

Add cypress cloud to see videos of cypress runs on CI #401

Draft
wants to merge 10 commits into
base: develop_tchap
Choose a base branch
from

Conversation

estellecomment
Copy link
Contributor

@estellecomment estellecomment commented Jan 31, 2023

Cypress Cloud is a service to visualize past runs of cypress, with videos of what happened !
Example video : https://cloud.cypress.io/projects/x8og2r/runs/2/test-results/6087b18f-0b1d-4cdc-83ca-1246e0a26dba/video

In CI, video is only uploaded on failed runs. You have to wait a while to see the run appear in the dashboard, because it only appears when cypress run starts and sends stuff to cypress cloud. So during the build and run of the tchap-web server, nothing shows up on cycpress cloud.

The dashboard looks like this :
Screen Shot 2023-01-31 at 11 15 00 AM

If you want to upload the results of your local cypress to Cypress Cloud (not sure why you want to do this, but it's possible !) you can run cypress run --record --key <record_key> locally. Find the record key in the dashboard's settings somewhere.

Bonus : you can also download the cypress results from the github action, they are saved as artifacts. Go to your action run, Summary, Artifacts (bottom of page)
Screen Shot 2023-01-31 at 11 30 26 AM

Todo :

  • create account and project on cloud.cypress.io
  • upload local runs of cypress to cloud.cypress.io
  • upload CI runs of cypress to cloud.cypress.io, with video !
  • upload artifacts

@estellecomment estellecomment marked this pull request as ready for review January 31, 2023 10:31
@@ -86,7 +84,6 @@ Cypress.Commands.add("getBot", (synapse: SynapseInstance, opts: CreateBotOpts):
userId: credentials.userId,
deviceId: credentials.deviceId,
accessToken: credentials.accessToken,
request,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

that fix is for just unbreaking the tests, otherwise we don't see the runs in cypress cloud. But fixing the tests will be done in other PRs.

@estellecomment estellecomment marked this pull request as draft September 21, 2023 16:03
@estellecomment
Copy link
Contributor Author

Setting this back to draft, I'll have to check if it still works, especially with all the changes done to the CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant