https://github.com/thompsonjonm/playwright-demoqa
A testing repository using Microsoft Playwright, Javascript, and Jest to test the DemoQA website.
https://github.com/thompsonjonm/playwright-demoqa
automation playwright playwright-javascript testing testing-framework
Last synced: about 1 month ago
JSON representation
A testing repository using Microsoft Playwright, Javascript, and Jest to test the DemoQA website.
- Host: GitHub
- URL: https://github.com/thompsonjonm/playwright-demoqa
- Owner: ThompsonJonM
- Created: 2021-01-19T16:34:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-31T16:08:20.000Z (over 4 years ago)
- Last Synced: 2025-03-25T16:21:52.926Z (about 2 months ago)
- Topics: automation, playwright, playwright-javascript, testing, testing-framework
- Language: JavaScript
- Homepage:
- Size: 201 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playwright Demoqa Project
A testing repository using Microsoft Playwright, Javascript, and Jest to test the DemoQA website.
1. [Tools Used](#tools-used)
2. [Installation](#installation)
3. [Running Tests](#running-tests)
4. [Test Plan](#test-plan)### Tools Used
- Playwright
- Prettier
- Eslint
- Fishery (Planned)
- Faker (Planned)### Installation
Simply input the following once cloned:
`npm install`
### Running Tests
This repository requires the creation of a `user.json` populated with a user for the Bookstore application. The JSON should resemble the following:
```
{
"username": { bookstoreUsername },
"password": { bookstorePassword }
}
```To run:
`npm run test`
Tests are headless by default. I intend on adding headless/headful as a command line selection.
### Test Plan
- Navigation
- Iterate through each menu selection and verify correct page load
- Elements
- Forms
- Alerts
- Windows can be automated
- Frames can be automated
- Nested Frames should be able to be automated
- Widgets
- Interactions
- Book store app
- Login
- Successfully login, logout
- Create command for API login
- User Register not automatable due to CAPTCHA
- Consider API
- POST https://www.demoqa.com/Account/v1/User
- Request:
- { userName: {USERNAME}, password: {PASSWORD} }
- Response:
- { "userID":{ID},"username":{USERNAME},"books":[] }
- Add a book
- UI and API
- Delete a book
- UI and API
- Delete all books
- UI and API
- Delete account
- UI and API