Skip download test for non chromium browser because of copy paste permission

This commit is contained in:
Arnaud 2024-10-22 11:32:39 +02:00
parent 06b8a34348
commit 0b180260fa
No known key found for this signature in database
GPG Key ID: 69D6CE281FCAE663

View File

@ -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'),