Skip to content

A testing repository using Microsoft Playwright, Javascript, and Jest to test the DemoQA website.

Notifications You must be signed in to change notification settings

ThompsonJonM/playwright-demoqa

Repository files navigation

Playwright Demoqa Project

A testing repository using Microsoft Playwright, Javascript, and Jest to test the DemoQA website.

  1. Tools Used
  2. Installation
  3. Running Tests
  4. 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
    • Add a book
      • UI and API
    • Delete a book
      • UI and API
    • Delete all books
      • UI and API
    • Delete account
      • UI and API

About

A testing repository using Microsoft Playwright, Javascript, and Jest to test the DemoQA website.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published