mirror of
https://github.com/plankanban/planka.git
synced 2025-12-06 09:13:16 +03:00
[PR #152] [MERGED] [Client] Setup UI test using BDD approach #1251
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/plankanban/planka/pull/152
Author: @amrita-shrestha
Created: 8/20/2021
Status: ✅ Merged
Merged: 10/17/2024
Merged by: @meltyshev
Base:
master← Head:uitest-setup📝 Commits (2)
19449b3SetUp uitest using BDD approach100f531Merge branch 'master' into uitest-setup📊 Changes
7 files changed (+131 additions, -1 deletions)
View changed files
➕
client/nightwatch.conf.js(+19 -0)📝
client/package.json(+6 -1)➕
client/tests/acceptance/cucumber.conf.js(+25 -0)➕
client/tests/acceptance/features/webUILogin/login.feature(+9 -0)➕
client/tests/acceptance/pageObjects/dashboardPage.js(+20 -0)➕
client/tests/acceptance/pageObjects/loginPage.js(+26 -0)➕
client/tests/acceptance/stepDefinitions/loginContext.js(+26 -0)📄 Description
Description
This PR adds setup for UI testing that uses Behavior Driven Development (BDD) approach.
Used testing libraries:
nightwatchnightwatch-api@cucumber/cucumber@cucumber/pretty-formatterExample test scenario included:
Motivation and Context
Why BDD?
BDD provides shared tools and processes across the entire (technical and non-technical) team to foster collaboration in meeting defined business requirements. BDD increases and improves collaboration. By using plain language, all are able to write behavior scenarios. With BDD, as its name says, you focus on the behavior, which has a stronger impact than the implementation itself.
Related Issue
#13
How Has This Been Tested?
How to run UI test?
Pre-requisite:
Step to run tests
plankaprojectNote: UI test will run in chrome browser (other browsers can be set up)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.