https://github.com/princebhatia1996/playwright-test-bdd
Playwright test using cucumber framework and POM
https://github.com/princebhatia1996/playwright-test-bdd
cucumber-framework playwright
Last synced: 2 months ago
JSON representation
Playwright test using cucumber framework and POM
- Host: GitHub
- URL: https://github.com/princebhatia1996/playwright-test-bdd
- Owner: princebhatia1996
- Created: 2025-01-15T21:22:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-13T01:03:02.000Z (over 1 year ago)
- Last Synced: 2025-04-09T13:17:46.636Z (about 1 year ago)
- Topics: cucumber-framework, playwright
- Language: TypeScript
- Homepage:
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Setup Instructions
- This project is a sample setup for using Cucumber and Playwright with TypeScript.
- It has e2e UI tests using the cucumber framework following the BDD syntax.
### Project Structure
The project structure is as follows:
```
Playwright-test-BDD/
├── src/
│ ├── components/
│ ├── pages/
│ ├── tests/
│ │ ├── features/
│ │ │ └── *.feature
│ │ ├── steps/
│ │ │ └── *.steps.js
│ │ └── support/
│ │ └── *.js
│ └── utils/
├── .gitignore
├── package.json
├── README.md
└── playwright.config.js
```
**Clone the repository:**
```
git clone https://github.com/princebhatia1996/Playwright-test-BDD
```
### Running the application
To start the project, you will need a recent version of node.js installed.
From there, run:
```
npm install
npm run start
```
And navigate to the link displayed in the console (probably http://localhost:5173/)
### Running the tests
To run the test, first make sure the application is running (see above).
From there, in a separate terminal/command prompt, run the following command:
```
npm run e2e
npm run test:client-list
npm run test:login
```
## Client Management application
- This test Client management application was developed by Findex.
- The Playwright test is testing the following features of the client management system:
- Logging into the application
- Adding a client to the client list
- Removing a client from the list