Skip to content

Commit

Permalink
Docs for triggering webapp e2e tests (#82)
Browse files Browse the repository at this point in the history
* Create WEBAPP_TESTS.md

* Update WEBAPP_TESTS.md

* Update WEBAPP_TESTS.md

* Update WEBAPP_TESTS.md

* Update WEBAPP_TESTS.md

* Update WEBAPP_TESTS.md

* Update WEBAPP_TESTS.md
  • Loading branch information
evgeniy-scherbina authored Nov 20, 2023
1 parent 6660403 commit 8ba168e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions architecture/WEBAPP_TESTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## WEBAPP TESTS

We decided to run webapp (https://github.com/Kava-Labs/webapp) e2e tests on every push to main to have more confidence before deploying to public-testnet and mainnet.

Webapp e2e tests help to catch bugs, especially bugs that happens only in browser environemnt: related to CORS, etc...

Webapp e2e tests is triggered in this job: `Continuous Integration (Trigger Webapp E2E Tests)` https://github.com/Kava-Labs/kava-proxy-service/blob/main/.github/workflows/ci-webapp-e2e-tests.yml

We use https://github.com/convictional/trigger-workflow-and-wait `github actions plugin` to facilitate triggering `webapp github actions job` from our github actions setup.

Plugin requires using of `GITHUB_PERSONAL_ACCESS_TOKEN`, we used devops account for this purposes. We created `Personal access tokens (classic)` on devops account with such permissions:
<img width="771" alt="image" src="https://github.com/Kava-Labs/kava-proxy-service/assets/37836031/93e7388c-3e00-4a49-8332-dbdf747c0c3b">

Token name: `trigger-workflow-and-wait-token`

## Job execution order

`Continuous Integration (Main Branch)` -> `Continuous Deployment (Internal Testnet)` -> `Continuous Integration (Trigger Webapp E2E Tests)`

In another words:

`Backend Tests` -> `Deploy to Internal Testnet` -> `Trigger Webapp E2E Tests`

`NOTE`: webapp tests are running against Internal Testnet so we have to redeploy it, before running tests.

## Accessing Dev Ops Account

Email: [email protected]

Credentials can be found in 1Password, look for: `Credentials for Github DevOps/Service Account`

0 comments on commit 8ba168e

Please sign in to comment.