fix(browser): update browser context creation for current Puppeteer API and refresh build configuration
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { expect, tap } from '@push.rocks/tapbundle';
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import * as smartpuppeteer from '../ts/index.js';
|
||||
|
||||
tap.test('should use pipe', async (tools) => {
|
||||
tap.test('should use pipe', async () => {
|
||||
const headlessBrowser = await smartpuppeteer.getEnvAwareBrowserInstance({
|
||||
forceNoSandbox: false,
|
||||
});
|
||||
@@ -12,7 +12,7 @@ tap.test('should use pipe', async (tools) => {
|
||||
await headlessBrowser.close();
|
||||
});
|
||||
|
||||
tap.test('should use websocket', async (tools) => {
|
||||
tap.test('should use websocket', async () => {
|
||||
const headlessBrowser = await smartpuppeteer.getEnvAwareBrowserInstance({
|
||||
forceNoSandbox: false,
|
||||
usePipe: false,
|
||||
@@ -31,4 +31,4 @@ tap.test('should get and stop an Incognito browser', async () => {
|
||||
await incognitoInstance.stop();
|
||||
});
|
||||
|
||||
tap.start();
|
||||
export default tap.start();
|
||||
Reference in New Issue
Block a user