Try some basic filtering of headless robots for /api/events and /api/cookies (#55005)
This commit is contained in:
@@ -664,6 +664,10 @@ test.describe('survey', () => {
|
||||
// See https://github.com/microsoft/playwright/issues/12231
|
||||
})
|
||||
|
||||
await page.addInitScript(() => {
|
||||
window.GHDOCSPLAYWRIGHT = 1
|
||||
})
|
||||
|
||||
await page.goto('/get-started/foo/for-playwright')
|
||||
|
||||
// The label is visually an SVG. Finding it by its `for` value feels easier.
|
||||
@@ -709,6 +713,10 @@ test.describe('survey', () => {
|
||||
// See https://github.com/microsoft/playwright/issues/12231
|
||||
})
|
||||
|
||||
await page.addInitScript(() => {
|
||||
window.GHDOCSPLAYWRIGHT = 1
|
||||
})
|
||||
|
||||
await page.goto('/get-started/foo/for-playwright')
|
||||
|
||||
await page.locator('[for=survey-yes]').click()
|
||||
|
||||
Reference in New Issue
Block a user