projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.6k stars 1.17k forks source link

Add root-cause to the e2e tests #739

Closed Bnaya closed 3 years ago

Bnaya commented 3 years ago

Hey đź‘‹

We wrote an open source tool called “Root Cause” that gives a better debugging experience for puppeteer/playwright tests. You can think of it as “cypress like debugging for puppeteer and playwright”.

Checklist

What?

Add root-cause to the e2e tests

Why?

When integrated, Root Cause will trace calls (or “test steps”) to the test automation library (puppeteer/playwright) and capture screenshot, console and network logs and other debug info, and make it all viewable in an intuitive viewer.

I was looking for open-source libraries with nice puppeteer/playwright e2e tests to integrate with so we can gather product feedback.

This PR adds root cause to this project. Note none of this is automatic and I actually went through the code to integrate.

Cloud Viewer

Testim.io also has a cloud offering of root-cause (like circleci for open source). It’s still very early on but we’d like to offer you “root cause cloud” for free. It basically makes it much easier to collaborate on e2e test results and debug why e2e tests failed.

I didn’t want to go ahead and register for you because that felt pushy to me and I’m trying to be helpful and gather feedback for this thing we’ve built.

To upload results to the cloud viewer, you will need to register to testim at https://app.testim.io/#/signup?fromRootCause=true and add your access token as an environment variable as described in the getting started page. Once you do that please let me know and I’ll be happy to enable it or your account.

How?

Integration with jest

Feel good image:

20161009_173612

dylanvorster commented 3 years ago

going to have a look now

Bnaya commented 3 years ago

Friendly ping @dylanvorster

I've updated the PR with our more streamlined integration I would be happy to resolve any blocker

Thanks!