
Omni testing in Playwright
We've improved our testing to allow for more, faster development for our team.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Hi. All right. Um, this will be Where did my mouse go? There we go. Uh, part demo, part FYI, really. So, been making progress on starting to convert over to playrate from Cypress. So, first step is we now have an actual dashboard in Omni that gives us all of the stats that we normally get from Cypress Cloud.
Uh, now in Omni. So, everything is available. we can continue to adapt and expand what we have um available to us here. You can do, you know, click through and be able to, of course, um you do have to have the tunnel open to playground to be able to look at the logs right now because that's what we're using as our authentication method to make sure it's not publicly accessible.
So, if I go back there and refresh real quick, you can get the full Playright report and be able to look through and look at individual runs and all of that kind of stuff. It takes a moment to load because we are tunneling everything through here, but um you'll be able to see everything that basically what we can see in Cypress today should be available.
So, um that's one piece that's relatively ready to go. I need to um add in a few things into the GitHub uh jobs themselves so it's easy to navigate to these spots, but making progress on that front. One of the things we're additionally going to add in is now that I've started migrating tests over, we're going to not fail builds for tests that have been migrated until we're at a point where everyone should have their hands in playright, but any newly added Playright tests will be able to fail the builds.
So, uh, I think Luke and Meredith are going to be my guinea pigs starting next week trying to get some of the container work, building out the end to end test and play rate as opposed to Cyprus. One other piece. So, I've been using Claude and Cursor and whatever other AI agent I can convince to try and do some of the conversion of these tests for me.
Um, they all feel like petulent teenagers at some point and keep telling me things are too hard and stop working. But um through continued persistence, we've been able to convert over most of the workbook smoke tests. Uh a couple changes I wanted to call out. Um one is I'm starting to add in more spots where we can um use seeds essentially as opposed to doing a lot of setup.
So in the current smoke tests for setting up these pivot tests, we go through and click on a lot of places and set up a bunch of pivots. And now in the new ones, you just need to make a call to add a document with the appropriate fields and pivots stop at cursor. Um, so that we save a bunch of that setup time and and get to the point where we're actually testing the thing we want to be testing better.
And then the other large piece is I'm converting this over to the page object model. Kind of a looseish page object model. So now each kind of page in our system will have a a class with a whole bunch of getters to to be able to access the items that we want giving optimization for all of the accessible locators that we have and then a bunch of helper methods.
So the tests themselves shouldn't have a whole lot of um locators and pieces like that scattered throughout them, but instead the tests become a lot more human readable and if we make a change as to where something is or how you access it, we've got one spot to make those changes. So, um, all of this should be coming soon and if anyone is super excited or interested, please reach out at any point.
Uh, always welcome to help. That's it.