Skip to content

Commit

Permalink
fix: Ignores CORS inside Playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
ViMaSter committed Aug 15, 2023
1 parent f05e513 commit f4ee42c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions playwright-ct.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import { defineConfig, devices } from '@playwright/experimental-ct-vue';
import { resolve } from 'path';

devices['Pixel 5'].launchOptions = {
args: ['--disable-web-security --user-data-dir="./tmp/google"'],
};

devices['Desktop Chrome'].launchOptions = {
args: ['--disable-web-security --user-data-dir="./tmp/google"'],
};

/**
* See https://playwright.dev/docs/test-configuration.
*/
Expand Down Expand Up @@ -45,17 +53,9 @@ export default defineConfig({
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
{
name: 'pixel5',
use: { ...devices['Pixel 5'] },
},
],
});
});

0 comments on commit f4ee42c

Please sign in to comment.