Remember to await everything in Playwright and Typescript - Digital Tool Factory blog Remember to await everything in Playwright and Typescript - Digital Tool Factory blog

Remember to await everything in Playwright and Typescript

I’ve recently fallen madly in love with the PlayWright web testing platform. Seemingly is has all of the strengths of every other testing platform, while being legible, transparent and actually working. However, I was thrown for a week by mystery timeouts, failures and heisenbugs.

The culprit happened when I all of the repeatable steps into components. The components themselves contained nothing but await statements, but I was not awaiting the components themselves. Against all logic, awaiting components that consist of nothing but await statements is necessary for playwright to work properly.

 

Written By Steve French

 

Leave a Reply

Your email address will not be published. Required fields are marked *






Copyright 2011 Digital Tool Factory. All Rights Reserved. Powered by raw technical talent. And in this case, WordPress.