A testing repository using Microsoft Playwright, Javascript, and Jest to test the DemoQA website.
- Playwright
- Prettier
- Eslint
- Fishery (Planned)
- Faker (Planned)
Simply input the following once cloned:
npm install
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.
- 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
- Login