Skip to content

navikt/kabal-e2e-tests

Repository files navigation

KABAL E2E tests

This app uses Playwright to log in as a test user in development and test that the app behaves as expected.

Running the tests

npm test

The app depends on a few environment variables to send messages to Slack. Without these it will output the same message updates to the console, it will be repeated a lot.

Local

Locally the E2E application will not send messages to Slack. The Slack config is therefore not needed.

export SAKSBEHANDLER_USERNAME=<email>
export SAKSBEHANDLER_PASSWORD=<password>

... or create an .env file with the following content:

SAKSBEHANDLER_USERNAME=<email>
SAKSBEHANDLER_PASSWORD=<password>

GCP

kubectl create configmap slack-e2e-configmap \
--from-literal=kabal_notifications_channel=klage-notifications

kubectl create secret generic slack-e2e-secrets \
--from-literal=slack_e2e_token=<token> \
--from-literal=slack_signing_secret=<secret>

kubectl create secret generic kabal-e2e-test-users \
--from-literal=SAKSBEHANDLER_USERNAME=<email> \
--from=literal=SAKSBEHANDLER_PASSWORD=<password>

As a one-time job, before the tests can run, we must apply the networkpolicy (nais/networkpolicy.yaml)

kubectl apply -f networkpolicy.yaml -n klage

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages