There is a comprehensive quick start guide in the Storybook Documentation to setting up an Insights environment complete with:
-
npm install -
npm run start
Checkout https://stage.foo.redhat.com:1337/ Read more.
npm run testtestsnpm run lintwill run the linter
Opens the Cypress GUI for running end-to-end tests. Similar to npm test, this script requires environment variables for authentication:
E2E_USER=<your-e2e-user> E2E_PASSWORD=<your-e2e-password> npm run cypress -- openReplace the placeholders with appropriate values.
This script requires running the application locally. If you want to use stage environment you have to provide URL and HTTP_PROXY variables
URL=https://console.stage.redhat.com HTTP_PROXY=<corporate-proxy-URL> E2E_USER=<your-e2e-user> E2E_PASSWORD=<your-e2e-password> npm run cypres -- openIf you want to use production site you can use just the URL
URL=https://console.redhat.com E2E_USER=<your-e2e-user> E2E_PASSWORD=<your-e2e-password> npm run cypres -- openThe following four branches are used
-
Stable
- prod-stable -> releases to console.redhat.com
- master-stable -> releases to console.stage.redhat.com
-
Beta
- prod-beta -> releases to console.redhat.com/beta
- master -> releases to console.stage.redhat.com/beta