I have a code below:
test.describe('basic test', async () => { const testList = **await **getTestCaseByCsvFile();
for(let i = 0; i < testList.length; i++) {
**test**(testList[i].testName, async () => {
// doSomething()
});
} });
test function will not be generated after an async/await function (I removed the await, the test case can be generated.)
Does test.describe() not support async/await to generate test case? Please advise.
This thread is trying to answer question "Does test.describe() not support async/await to generate test case? How can this issue be fixed?"
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].