Better integration test framework (internal)

Nancy Chacko · Friday Demos · July 25, 2025 · 3:10

We walk through some new internal tooling to handle cross-browser integration testing.

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. All right. Um, this one is going to be pretty internal focused. Um, but for those who don't know, we currently use Cypress for our end toend testing, which is a large part of our strategy to make sure that we can push frequently to production and not break anything for our customers. So, I've been doing a PC with uh, Playright.

  2. Um, multiple reasons. One is Cypress is getting pretty expensive for us and it has some limitations. uh biggest ones being it pretty much only works with Chromium based browsers and it doesn't allow for multitabs. So you get single pane experience essentially. So anytime you want to pop something new open the tests don't end up working. So I'm going to just run the test.

  3. We've only uh put together a couple and the screen should hopefully explode into a bunch of browsers popping up in just a moment. Uh really exciting to watch at the end of the day. But um one of them over here. There we go. So it's Chrome, Safari, and Firefox all going and we're doing an embedded embedded experience.

  4. So this is a dashboard embedded into an iframe in Safari. That's the one where it's the most interesting where it has this weird cookie experience that comes along the way. Uh it seems I broke a few things as I was doing this. Um, so we're going to ignore that failure for the moment. But, um, yeah, so it's going to run the last few tests.

  5. And, and one thing to note also is in doing this, uh, there were a few problems to solve along the way with, um, kind of how we do our seed database right now. Oh, darn it. My cursor go. Um, and so here's the test report that we get on the other side. And you can see uh sorry when you click in you can get a full trace and and everything.

  6. So you can watch and see what exactly happened along the way get all the network output console output error output everything along those lines. Um so uh along with this we've kind of updated the seed also so uh we can run the tests in parallel. Uh that's the starting mode we're going to go with for Playright is trying to make it so that if you're going to do something destructive, you have to be doing it in your own organization, making it super easy to make your own orgs, add dashboards to those orgs, add dashboards with tons of tiles to them, everything along those lines.

  7. So working through a lot of that tooling right now as well. And then the tests themselves end up looking pretty clean. Um, I know I think Elliot and Nate have dealt with or maybe Gustav as well dealt with a lot of the like iframe issues within Cypress and in Playright you literally just grab the frame and then can use all of your normal selectors to get items within them.

  8. So this is the entire Chrome and Firefox test for loading up an embedded dashboard and ensuring that it it works well. So um we've got lots of plans still to come with it. We need to add in historical reporting and the goal is to use Omni to do the reporting for this at the end of the day.

  9. um and uh a bunch more to be done with a seed and start to expand the test suite and figure out exactly how we want Cypress and Playright to play together going forward. But should have the initial bits of this checked in pretty soon. That's it.