Files
nebula.js/test/rendering/setup.js
Tobias Åström 32d600e88b chore: convert rendering tests to es6 (#1658)
* 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
2024-12-30 14:40:28 +01:00

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 };
}