Reputation: 221
1- File names are like login.test.js but in playwright test runner file name should be login.spec.js
2- Directory is Login(Component) -> specs -> login.test.js but in playwright test runner it should be like tests/login.spec.js
3- In my code I use jest keywords for example describe but in Playwright test runner it is test.describe
4- The playwright test runner config file is not supported in my project because it uses Module export. It gives error while reading config file.
So in this situation how can I move my project to Playwright Test Runner?
Thank in advance.
Upvotes: 2
Views: 1630
Reputation: 8692
.*(test|spec)
testDir
property for that.test
prefix for almost all methods such as describe, test, beforeAll, beforeEach, afterAll, afterEach
.Upvotes: 2