ocket8888 opened a new pull request, #7894: URL: https://github.com/apache/trafficcontrol/pull/7894
This PR switches the TPv2 E2E testing suite from NightwatchJS to Cypress. "Why?", you may ask. Because it took me all of two days to replicate all of our test suite in Cypress - that's how easy it is to use. For comparison: _I have never even once been able to get the Nightwatch tests to run on my machine_. With Cypress, the typings are provided by the library itself, testing on Chrome and Firefox took exactly zero time and effort to figure out, and the tests actually just do the things I want them to do without me having to spend countless hours needling them with the correct set of `await`s and chained commands. Which is why most all of our tests do little more than check for the presence of some DOM elements. Maybe with Cypress, we could fix that. tl;dr: Nightwatch is extremely hard to use and Cypress is extremely easy. <hr/> ## Which Traffic Control components are affected by this PR? - Traffic Portal (experimental v2) ## What is the best way to verify this PR? Run the end-to-end tests. Which doesn't take very long and can be depended upon to actually work. ## PR submission checklist - [x] This PR has tests - [x] This PR has documentation - [x] This PR doesn't need a CHANGELOG.md entry - [x] This PR **DOES NOT FIX A SERIOUS SECURITY VULNERABILITY** -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
