Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test(permissions): split expectations between tot and beta

Pavel Feldman919d3eaf4249
diff --git a/tests/library/permissions.spec.ts b/tests/library/permissions.spec.ts
index 473f8c88fe..b8937ae752 100644
--- a/tests/library/permissions.spec.ts
+++ b/tests/library/permissions.spec.ts
@@ -100,9 +100,9 @@ it.describe('permissions', () => {
expect(await getPermission(page, 'geolocation')).toBe('prompt');
});
- it('should trigger permission onchange', async ({ page, context, server, browserName, headless }) => {
+ it('should trigger permission onchange', async ({ page, context, server, browserName, headless, channel }) => {
it.fail(browserName === 'webkit');
- it.fail(browserName === 'chromium' && !headless);
+ it.fail(browserName === 'chromium' && !headless && !channel, 'Fixed on ToT, remove once Beta rolls');
await page.goto(server.EMPTY_PAGE);
await page.evaluate(() => {