This project contains smoke, integration UI, accessibility and Kyma-related tests for Busola.
Before testing, you need to copy your cluster's kubeconfig file to fixtures/kubeconfig.yaml.
For tests that start with kyma-, run Busola using Docker, PR number, and - optionally - your desired environment:
PR_NUMBER={YOUR_PR_NUMBER} ENV={DESIRED_ENV} npm run run-dockerTo install dependencies, run the npm install command.
To run Cypress UI tests using a Chrome browser in headless mode,
pointing to a remote Busola cluster with the default local.kyma.dev domain, use this command:
npm testTo run the tests, pointing to a remote Busola cluster with custom domain, use this command:
CYPRESS_DOMAIN={YOUR_DOMAIN} npm testTo run the tests, pointing to a local Busola instance, use this command:
npm run test:localTo open Cypress UI tests runner,
pointing to a remote Busola cluster with the default local.kyma.dev domain, use this command:
npm run startTo open the tests runner, pointing to a remote Busola cluster with custom domain, use this command:
CYPRESS_DOMAIN={YOUR_DOMAIN} npm startTo open the tests runner, pointing to a local Busola instance, use this command:
npm run start:localIf a cluster requires an OIDC authentication, include these additional arguments while lunching tests, for example:
CYPRESS_OIDC_PASS={YOUR_PASSWORD} CYPRESS_OIDC_USER={YOUR_USERNAME} npm startBefore testing, copy your cluster's kubeconfig file to fixtures/kubeconfig.yaml.
Also, you need ACC_AMP_TOKEN to submit your generated accessibility report to AMP Portal.
To run the tests, pointing to a local Busola instance, use this command:
ACC_AMP_TOKEN={YOUR_AMP_TOKEN} npm run test:accesibility:localTo open tests runner, pointing to a local Busola instance, use this command:
ACC_AMP_TOKEN={YOUR_AMP_TOKEN} npm run start:local