diff --git a/tests/integration/README.md b/tests/integration/README.md index 48e4f3222f..839db85850 100644 --- a/tests/integration/README.md +++ b/tests/integration/README.md @@ -2,12 +2,18 @@ ## Overview -This project contains smoke and integration UI tests for Busola. +This project contains smoke, integration UI tests for Busola. ## Prerequisites Before testing, you need to copy your cluster's kubeconfig file to `fixtures/kubeconfig.yaml`. +For tests which starts with `kyma-` run Busola using Docker, PR number, and - optionally - your desired environment: + +```bash +PR_NUMBER={YOUR_PR_NUMBER} ENV={DESIRED_ENV} npm run run-docker +``` + ## Installation To install dependencies, run the `npm install` command. diff --git a/tests/kyma/README.md b/tests/kyma/README.md deleted file mode 100644 index 4ab259203b..0000000000 --- a/tests/kyma/README.md +++ /dev/null @@ -1,79 +0,0 @@ -# Tests - -## Overview - -This project contains integration and smoke UI tests for Kyma dashboard. - -## Prerequisites - -Before testing, you need to copy your cluster's kubeconfig file to `fixtures/kubeconfig.yaml`. - -First, run Busola using Docker, PR number, and - optionally - your desired environment: - -```bash -PR_NUMBER={YOUR_PR_NUMBER} ENV={DESIRED_ENV} npm run run-docker -``` - -## Installation - -To install dependencies, run the `npm install` command. - -## Development - -### Run Cypress UI tests in the headless mode - -To run Cypress UI tests using a Chrome browser in `headless mode`, -pointing to a `remote Kyma dashboard` cluster with the default `local.kyma.dev` domain, use this command: - -```bash -npm test -``` - -To run the tests, pointing to a `remote Kyma dashboard` cluster with `custom` domain, use this command: - -```bash -CYPRESS_DOMAIN={YOUR_DOMAIN} npm test -``` - -To run the tests, pointing to a `local Kyma dashboard` instance, use this command: - -```bash -npm run test:local -``` - -### Run Cypress UI tests in the test runner mode - -To open Cypress UI `tests runner`, -pointing to a `remote Kyma dashboard` cluster with the default `local.kyma.dev` domain, use this command: - -```bash -npm run start -``` - -To open the `tests runner`, pointing to a `remote Kyma dashboard` cluster with `custom` domain, use this command: - -```bash -CYPRESS_DOMAIN={YOUR_DOMAIN} npm run start -``` - -To open the `tests runner`, pointing to a `local Kyma dashboard` instance, use this command: - -```bash -npm run start:local -``` - -### Smoke tests - -To run smoke tests, pointing to a local Kyma dashboard instance, use this command: - -```bash -test:smoke-extensions -``` - -### Login via OIDC to a cluster (optional) - -If a cluster requires an OIDC authentication, include these additional arguments while lunching tests, for example: - -```bash -CYPRESS_OIDC_PASS={YOUR_PASSWORD} CYPRESS_OIDC_USER={YOUR_USERNAME} npm start -```