1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-30 10:39:46 +02:00
planka/client/tests/acceptance/cucumber.conf.js

25 lines
566 B
JavaScript
Raw Normal View History

import { After, AfterAll, Before, BeforeAll, setDefaultTimeout } from '@cucumber/cucumber';
import { chromium } from 'playwright';
import Config from './Config.js';
setDefaultTimeout(Config.TIMEOUT);
BeforeAll(async () => {
global.browser = await chromium.launch(Config.PLAYWRIGHT);
});
Before(async () => {
global.context = await global.browser.newContext();
global.page = await global.context.newPage();
});
After(async () => {
await global.page.close();
await global.context.close();
});
AfterAll(async () => {
await global.browser.close();
});