1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Try some basic filtering of headless robots for /api/events and /api/cookies (#55005)

This commit is contained in:
Kevin Heis
2025-03-25 13:39:38 -07:00
committed by GitHub
parent cb2f42c81b
commit b4bd574acc
5 changed files with 33 additions and 8 deletions

View File

@@ -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()