@cliqz/autoconsent
Version:
This is a library of rules for navigating through common consent popups on the web. These rules can be run in a Firefox webextension, or in a puppeteer orchestrated headless browser. Using these rules, opt-in and opt-out options can be selected automatica
31 lines (29 loc) • 771 B
text/typescript
import { PlaywrightTestConfig, devices } from '@playwright/test';
const proxy = process.env.PROXY_SERVER ? { server: process.env.PROXY_SERVER } : undefined
const config: PlaywrightTestConfig = {
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
testDir: 'tests',
use: {
trace: 'on-first-retry',
},
projects: [
{
name: 'webkit',
use: {
...devices['Desktop Safari'],
proxy,
screenshot: 'only-on-failure',
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15',
},
},
{
name: 'firefox',
use: {
...devices['Desktop Firefox'],
proxy,
},
}
],
};
export default config;