Detecting and Handling Flaky Tests in Playwright
ray.run
ray.run
Mocking the API makes it really easy to response with failures too - having a test that checks the app handles a 500 error or a 401 Unauthorized is really useful, and a total pain to do without mocks.
You can test the API is working and returning what you'd expect with a different set of tests. :)
integration starts providing flaky tests already sadly, i.e. with kafka on our end… (i.e. calling the listener twice or thrice even tho it should only once..)
The ideal is to mock out the API with some sort of recording mode to autoupdate the mock.
> curl -D- https://ray.run/blog/detecting-and-handling-flaky-tests-in-playwright
HTTP/1.1 200 Connection established
HTTP/2 301
date: Mon, 03 Jul 2023 10:43:44 GMT
content-length: 0
location: https://ray.run/blog/detecting-and-handling-flaky-tests-in-playwright
...