Skip to content

Commit cbf1511

Browse files
committed
Skip clipboard test on WebKit — permission not supported
WebKit/Playwright doesn't support grantPermissions for clipboard-write. The share button still works in real Safari (falls back to navigator.clipboard), this just skips the E2E assertion on that engine.
1 parent e42c17d commit cbf1511

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/e2e/catalog-filter.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ test.describe('Catalog Filter', () => {
9393
await page.waitForURL(new RegExp(`/smells/${slug}$`));
9494
});
9595

96-
test('share button copies without navigating away from the catalog', async ({ page }) => {
96+
test('share button copies without navigating away from the catalog', async ({ page }, testInfo) => {
97+
test.skip(testInfo.project.name === 'webkit', 'WebKit does not support clipboard-write permission');
9798
await page.context().grantPermissions(['clipboard-read', 'clipboard-write'], {
9899
origin: new URL(page.url()).origin,
99100
});

0 commit comments

Comments
 (0)