Using asynchronous function in loop with Typescript

Recently I met the error Playwright context disposed when writing the API test using Playwright framework. Turns out the root cause of it related to wrong implementation of using asynchronous function with loop.

Photo by Andreas Dress on Unsplash

--

--

For those who are interested in automating the stuffs, CI/CD pipeline, automation test..

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Donald Le

A passionate automation engineer who strongly believes in “A man can do anything he wants if he puts in the work”.