fix(core): update

This commit is contained in:
2021-08-17 15:22:10 +02:00
parent ed1522062e
commit 87d7460183
5 changed files with 16 additions and 6 deletions

View File

@@ -5,7 +5,15 @@ tap.test('first test', async (tools) => {
const headlessBrowser = await smartpuppeteer.getEnvAwareBrowserInstance({
forceNoSandbox: true,
});
const page = await headlessBrowser.newPage();
await headlessBrowser.close();
});
tap.test('should get and stop an Incognito browser', async () => {
const incognitoInstance = new smartpuppeteer.IncognitoBrowser();
await incognitoInstance.start();
const page = await incognitoInstance.browser.newPage();
await incognitoInstance.stop();
})
tap.start();