mirror of
https://github.com/plankanban/planka.git
synced 2025-08-05 13:35:27 +02:00
test: Setup UI test using BDD approach (#152)
This commit is contained in:
parent
7f4bc1bb62
commit
4efc3be8d5
7 changed files with 131 additions and 1 deletions
25
client/tests/acceptance/cucumber.conf.js
Normal file
25
client/tests/acceptance/cucumber.conf.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
const {
|
||||
After,
|
||||
Before,
|
||||
AfterAll,
|
||||
BeforeAll,
|
||||
setDefaultTimeout,
|
||||
} = require("@cucumber/cucumber");
|
||||
const { createSession, closeSession } = require("nightwatch-api");
|
||||
|
||||
setDefaultTimeout(60000);
|
||||
// runs before all scenarios
|
||||
BeforeAll(async function () {});
|
||||
|
||||
// runs before each scenario
|
||||
Before(async function () {
|
||||
await createSession();
|
||||
});
|
||||
|
||||
// runs after each scenario
|
||||
After(async function () {
|
||||
await closeSession();
|
||||
});
|
||||
|
||||
// runs after all scenarios
|
||||
AfterAll(async function () {});
|
Loading…
Add table
Add a link
Reference in a new issue