Files
baserow/e2e-tests/README.md
alamin-br e7381b5384 feat(mcp): always turn on OAuth sign-in and add the MCP tools changelog (#6930)
* chore: add changelog entry for the MCP shared tools

The tools PRs left it for when the milestone was done.

* feat(mcp): always turn on OAuth sign-in

BASEROW_MCP_OAUTH_ENABLED is removed before it ships, so OAuth sign-in is
on everywhere. The settings page opens the endpoint tab when the OAuth
connections fail to load.
2026-12-01 15:44:39 +01:00

23 lines
2.2 KiB
Markdown

## How to run locally
```bash
cd e2e-tests
# This will do all the yarn installs for you
./run-e2e-tests-locally.sh
# Once done you can easily just re-run the following:
yarn run test
```
## Environment variables
The suite runs two ways, and which mail variable applies depends on which.
| Variable | Used by | Meaning |
| --- | --- | --- |
| `E2E_MAIL_API_URL` | `./run-e2e-tests-locally.sh` and `yarn run test` | Where the tests read sent mail from. Defaults to `http://localhost:$BASEROW_MAILHOG_WEB_PORT`, falling back to port 8025. A dev stack started as alternate instance A or B publishes MailHog on 8035 or 8045 instead, so set `BASEROW_MAILHOG_WEB_PORT` (or this URL) to match the stack you are testing. |
| `E2E_MAIL_API_PORT` | `just e2e ...` | The host port the containerized stack publishes its own MailHog on. Defaults to 8075, and only needs changing when something else already listens there. The justfile builds `E2E_MAIL_API_URL` from it. |
| `E2E_SLACK_STUB` | `./run-e2e-tests-locally.sh` and `yarn run test` | Set to `yes` when the backend under test has `BASEROW_INTEGRATIONS_SLACK_API_URL` pointed at the WireMock stub in `stubs/slack`, which `just e2e` and CI do. The one test in `button_field_slack.spec.ts` that clicks is skipped otherwise, since it would reach slack.com. Locally the script starts the stub on `E2E_SLACK_STUB_PORT` (default 8101); run the dev backend with `BASEROW_INTEGRATIONS_SLACK_API_URL=http://localhost:8101/api` and `BASEROW_INTEGRATIONS_ALLOW_PRIVATE_ADDRESS=true`. |
| `E2E_KUMA_MODEL_STUB` | `yarn run test` | Set to `yes` when the backend and its Celery worker run Kuma against the stub in `stubs/kuma-model` (`BASEROW_ENTERPRISE_ASSISTANT_LLM_MODEL=openai/kuma-e2e` and `OPENAI_BASE_URL` pointing at the stub), which `just e2e` and CI do. The Kuma background run tests are skipped otherwise. |
| `E2E_HTTP_STUB_URL` | both | The endpoint the HTTP action tests call. The local runner starts httpbin in Docker when the backend allows private addresses, and falls back to the public httpbin.org otherwise. |
| `E2E_BUTTON_RATE_LIMIT` | both | How many external clicks a user gets per minute. The tests that click until they are refused are skipped when it is unset, since the runner cannot set it for a dev backend. |