1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-31 02:59:46 +02:00

add test for dashboard

Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
This commit is contained in:
nabim777 2024-10-07 09:58:56 +05:45
parent 95c8175e8c
commit db81ebcc7f
No known key found for this signature in database
GPG key ID: 6EBA146273BEC371
6 changed files with 114 additions and 1 deletions

View file

@ -0,0 +1,13 @@
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);
});