0.0.1 • Published 3 years ago

web-user-tour v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

IWD User tour

A monitoring application to have a basic functional status of our web applications.

For the moment the application only provides end-to-end tests on the webapp using Cypress.

Prerequisite

You need yarn in order to install and use this project.

If you don't have it installed yet, follow these instructions.

Install

yarn install

Configuration

In order to run the application, you need to provide some configuration via environment variables:

NameDescriptionExample
WEBAPP_URLThe webapp root URLhttps://vm.iwd/functest/
WEBAPP_USERThe login emailiwd@functionaltest.iwd
WEBAPP_PASSWORDThe login password1234

You have to put these variables in a .env file at the project root.

You can also provide/override these variables directly via the CLI (see Usage).

Usage

To run the tests:

yarn start

To run the tests without the UI (headless mode):

yarn start:headless

You can also run the Cypress Test Runner (mainly for dev purposes):

yarn open

For all the commands above, you can also provide/override the configuration directly via the CLI:

WEBAPP_URL=... WEBAPP_USER=... WEBAPP_PASSWORD=... yarn start

Recording

When a test fail, a video and a screenshot are recorded in the output/ folder.

Contributing

Pull master and create a new branch to start working.

You can lint your code with yarn lint ... or yarn lint:all.

Once you're done, push your branch and open a merge request with the tag MR: Need review.

Once your MR is approved, you can merge in master.

0.0.1

3 years ago