Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Client] Setup UI test using BDD approach #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amrita-shrestha
Copy link

Description

This PR adds setup for UI testing that uses Behavior Driven Development (BDD) approach.
Used testing libraries:

  • nightwatch
  • nightwatch-api
  • @cucumber/cucumber
  • @cucumber/pretty-formatter

Example test scenario included:

  • login with valid credentials

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?

  • locally

How to run UI test?

Pre-requisite:

  • Docker

Step to run tests

  1. Pull and run selenium docker image
docker run -d --network="host" -v /dev/shm:/dev/shm selenium/standalone-chrome-debug
  1. Run planka project
  2. Run UI test with following command:
cd client
npm run test:webui tests/acceptance/features

Note: UI test will run in chrome browser (other browsers can be set up)

@amrita-shrestha
Copy link
Author

Hi, @meltyshev
I would be glad if you could review and give your opinion

@CLAassistant
Copy link

CLAassistant commented Jan 16, 2023

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants