From 0b180260fa31e1e4e9b9737944469b992c79fcd0 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 22 Oct 2024 11:32:39 +0200 Subject: [PATCH] Skip download test for non chromium browser because of copy paste permission --- e2e/download.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/e2e/download.spec.ts b/e2e/download.spec.ts index ef17753..ae7899e 100644 --- a/e2e/download.spec.ts +++ b/e2e/download.spec.ts @@ -6,7 +6,11 @@ import { fileURLToPath } from 'url'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); -test('download a file', async ({ page }) => { +test('download a file', async ({ page, browserName }) => { + // https://github.com/microsoft/playwright/issues/13037 + test.skip(browserName.toLowerCase() !== 'chromium', + `Test only for chromium!`); + await page.goto('/dashboard'); await page.locator('div').getByTestId("upload").setInputFiles([ path.join(__dirname, "assets", 'chatgpt.jpg'),