Skip to content

Commit d532e49

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/browser.test.ts

Lines changed: 4 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,16 @@ describe('browser', () => {
1718
headless: true,
1819
isolated: false,
1920
userDataDir: folderPath,
21+
executablePath: executablePath(),
2022
});
2123
try {
2224
try {
25+
console.log('launching the second browser')
2326
const browser2 = await launch({
2427
headless: true,
2528
isolated: false,
2629
userDataDir: folderPath,
30+
executablePath: executablePath(),
2731
});
2832
await browser2.close();
2933
assert.fail('not reached');

0 commit comments

Comments
 (0)