Closed as not planned
Description
Let's have following test file
import { TestDetails, test } from '@playwright/test'
test.describe('Suite', () => {
async function makeTest (testTitle: string, testOptions: TestDetails, urlPath: string) {
test(testTitle, testOptions, async ({ page }) => {
await page.goto('www.mywebsite.com/' + urlPath, { waitUntil: 'load' })
})
}
makeTest('Test1', { tag: ['@smoke'] }, 'url_path_1')
makeTest('Test2', { tag: ['@smoke'] }, 'url_path_2')
makeTest('Test3', { tag: ['@smoke'] }, 'url_path_3')
})
I get this error
which is wrong regarding docs https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/valid-title.md
package | version |
---|---|
eslint-plugin-playwright | 1.6.2 |
@playwright/test | 1.44.0 |