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:
parent
95c8175e8c
commit
db81ebcc7f
6 changed files with 114 additions and 1 deletions
13
client/tests/acceptance/stepDefinitions/dashBoardContext.js
Normal file
13
client/tests/acceptance/stepDefinitions/dashBoardContext.js
Normal 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);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue