Skip to content

Commit

Permalink
Fix playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Bulyukhin authored and vladbulyukhin committed Mar 24, 2024
1 parent cb75cf9 commit b1e2cb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/e2e/helpers/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ export const test = base.extend<{
helperExtensionId: string;
extensionId: string;
}>({
context: async (_param, use) => {
// biome-ignore lint/correctness/noEmptyPattern: This is required for playwright to work
context: async ({}, use) => {
const pathToHelperExtension = path.join(__dirname, "./extension");
const pathToExtension = path.join(__dirname, "../../../dist");
const context = await chromium.launchPersistentContext("", {
headless: false,
args: [
"--headless=new",
`--disable-extensions-except=${pathToHelperExtension},${pathToExtension}`,
`--load-extension=${pathToHelperExtension},${pathToExtension}`,
],
Expand Down

0 comments on commit b1e2cb7

Please sign in to comment.