test: navigator.webdriver is set to true (#19065)

https://github.com/microsoft/playwright/issues/18307
This commit is contained in:
Max Schmitt 2022-11-28 18:03:49 -10:00 committed by GitHub
parent 7a68e79b7f
commit dd18792087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,3 +252,8 @@ it('frame.press should work', async ({ page, server }) => {
await frame.press('textarea', 'a');
expect(await frame.evaluate(() => document.querySelector('textarea').value)).toBe('a');
});
it('has navigator.webdriver set to true', async ({ page, browserName }) => {
it.fixme(browserName === 'firefox');
expect(await page.evaluate(() => navigator.webdriver)).toBe(true);
});