mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
* chore: convert rendering tests to es6 * chore: fix cjs config usage * chore: fix cjs config usage * chore: fix verify translations * chore: babel and jest es6 * chore: aw cjs * chore: aw cjs * chore: aw cjs * chore: fix path
15 lines
352 B
JavaScript
15 lines
352 B
JavaScript
import { chromium } from '@playwright/test';
|
|
|
|
export default async function getPage() {
|
|
const browser = await chromium.launch();
|
|
const page = await browser.newPage();
|
|
page.setDefaultNavigationTimeout(30000);
|
|
page.setDefaultTimeout(30000);
|
|
|
|
const destroy = async () => {
|
|
await browser.close();
|
|
};
|
|
|
|
return { browser, page, destroy };
|
|
}
|