https://github.com/auth0-samples/spa-quickstarts-tests
A set of SPA test scripts prepared to run using a web automation tool
https://github.com/auth0-samples/spa-quickstarts-tests
quickstart testing tooling
Last synced: 11 months ago
JSON representation
A set of SPA test scripts prepared to run using a web automation tool
- Host: GitHub
- URL: https://github.com/auth0-samples/spa-quickstarts-tests
- Owner: auth0-samples
- License: mit
- Created: 2018-04-05T15:19:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-16T12:16:07.000Z (over 2 years ago)
- Last Synced: 2024-04-10T16:07:57.212Z (about 2 years ago)
- Topics: quickstart, testing, tooling
- Language: JavaScript
- Homepage:
- Size: 612 KB
- Stars: 6
- Watchers: 24
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# SPA Web Automation On CircleCI
A set of scripts that run over [CodeceptJS](https://codecept.io) against a Single Page Application (SPA) and attempt to test the "Log in" behavior with Lock in the Universal Login.
This scripts are being used on some of the Auth0 SPA Quickstart samples repositories CI builds to verify the code introduced to the project.
### How to Run them
A simple CodeceptJS test is located in the `lock_login_test.js` file. To run them against a running SPA first install the CodeceptJS package.
```sh
npm install
```
Tests run by issuing `npm test` or
```sh
./node_modules/.bin/codeceptjs run-multiple --all
```
Failing tests will produce a screenshot for debugging purposes under the `out` folder.
### Configuration
The SPA is expected to be running on `https://localhost:3000`. Change this URL by setting an environment variable named `WEBAPP_URL` or use localhost with a different port by setting `SAMPLE_PORT`.
Detailed configuration can be found and changed in the `codecept.conf.js` file.