That is a simple React application for playing with a test automation framework.
Disclaimer: I built this app to play around with automated tests. I have limited knowledge of React, so keep in mind that this project probably isn't the best example of good coding practices, etc. This application is also highly insecure - the simplified authentication feature is made only for demo use.
Open the link: https://rafaljab.github.io/gui-automation-playground
- Login mock with a warning alert - Screenshot
- The authentication state is saved in local storage
- Shop with products and cart page (inspired by Dave Gray's Typescript Course) - Screenshot1 | Screenshot2
- Shop products are fetched with the API Automation Playground REST API (so you need an internet connection for this to work if you run the app locally). Check out the GitHub repository for this project here.
- TODOs list with saving in local storage - Screenshot
For your test automation practice, you can:
- use a deployed application (the latest release) that is available online - link to live demo above, or
- clone the repository and run the application in dev-mode (recent changes; if you synchronize the repository in the future, you'll probably have to adjust the tests), or
- if you need a stable application, download a zip package with a specific release and run it locally in dev-mode.
- Node.js (I use version 18.12.1, but you can probably use a newer version too)
Variant 1: Clone the repository
To clone the repository and install other dependencies, run the following commands:
git clone https://github.com/rafaljab/gui-automation-playground.git
cd gui-automation-playground
npm install
If you want more freedom, you can fork the repository first instead of cloning it directly.
Variant 2: Download release
- Download the package with the selected release (zip file with source code).
- Unzip the file to the desired location.
- Go to the directory with the
package.json
file and install dependencies by runningnpm install
.
You can start the application manually (A) or by using a ready-made CMD script (B).
A) Manually
Run the following command to start the React application (dev mode):
npm start
Your web browser should automatically open to default: http://localhost:3000/gui-automation-playground.
B) Using CMD Script (Windows)
Just open the start-app.cmd
file. It will run the command for you.
You can find end-to-end automated tests for GUI in separate repositories:
- helloPlaywrightPy - Playwright with Python
- hello-playwright-ts - Playwright with Typescript