1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-25 08:09:44 +02:00
planka/client/tests/acceptance/cucumber.conf.js
Maksim Eltyshev 2ee1166747 feat: Version 2
Closes #627, closes #1047
2025-05-10 02:09:06 +02:00

24 lines
566 B
JavaScript

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