Skip to content

Commit 301a45d

Browse files
committed
test: use cft for e2e tests
1 parent 9204618 commit 301a45d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/browser.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {describe, it} from 'node:test';
77
import assert from 'node:assert';
88
import os from 'node:os';
99
import path from 'node:path';
10+
import {executablePath} from 'puppeteer';
1011
import {launch} from '../src/browser.js';
1112

1213
describe('browser', () => {
@@ -17,13 +18,15 @@ describe('browser', () => {
1718
headless: true,
1819
isolated: false,
1920
userDataDir: folderPath,
21+
executablePath: executablePath(),
2022
});
2123
try {
2224
try {
2325
const browser2 = await launch({
2426
headless: true,
2527
isolated: false,
2628
userDataDir: folderPath,
29+
executablePath: executablePath(),
2730
});
2831
await browser2.close();
2932
assert.fail('not reached');

0 commit comments

Comments
 (0)