From 249d969d4be234760d01bcc526941819f45ed411 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Thu, 26 Jan 2023 10:15:19 -0800 Subject: [PATCH] test: navigator.clipboard is present (#20402) Fixes #18901 --- tests/library/capabilities.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts index a6c48d3dd2..07fb4376a1 100644 --- a/tests/library/capabilities.spec.ts +++ b/tests/library/capabilities.spec.ts @@ -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(); +});