test: navigator.clipboard is present (#20402)

Fixes #18901
This commit is contained in:
Yury Semikhatsky 2023-01-26 10:15:19 -08:00 committed by GitHub
parent 840052a309
commit 249d969d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,3 +158,9 @@ it('should not crash on storage.getDirectory()', async ({ page, server, browserN
expect(error).toBeFalsy();
}
});
it('navigator.clipboard should be present', async ({ page, server, browserName, browserMajorVersion }) => {
it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/18901' });
await page.goto(server.EMPTY_PAGE);
expect(await page.evaluate(() => navigator.clipboard)).toBeTruthy();
});