1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 05:09:43 +02:00
planka/client/tests/acceptance/stepDefinitions/dashBoardContext.js
nabim777 db81ebcc7f
add test for dashboard
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2024-10-17 22:19:14 +05:45

13 lines
449 B
JavaScript

const { When, Then } = require('@cucumber/cucumber');
const DashboardPage = require('../pageObjects/DashboardPage');
const dashboardPage = new DashboardPage();
When('the user creates a project with name {string} using the webUI', async function (project) {
await dashboardPage.createProject(project);
});
Then('the created project {string} should be opened', async function (project) {
dashboardPage.checkForProjectOpenedOrNot(project);
});