Baserow comes with end-to-end test suite in the e2e-tests
folder. The test suite
uses Playwright testing tool to run UI tests against a
running Baserow instance using one or multiple browsers.
As of February 2023 the e2e test suite is brand new, we recommend you add any e2e tests you think make sense. Some ideas on what to test:
# Startup your local env which will be tested
$ ./dev.sh
$ cd e2e-tests
# The below script installs the e2e test package, waits for your dev env to be healthy
# and then runs the tests.
$ ./run-e2e-tests-locally.sh
# After which you can manually re-run the tests with various manual commands:
yarn test # headless
yarn test-headed
yarn test
and yarn test-headed
will run all tests in Chrome.
Besides Playwright configuration defined in e2e-tests/playwright.config.ts
you can set
environment variables to target a Baserow instance on any URL
with PUBLIC_WEB_FRONTEND_URL
and PUBLIC_BACKEND_URL
. You can also
use e2e-tests/.env
file to do so, see e2e-tests/.env-example
.
To run E2E tests in CI to should:
build-backend-image
and build-web-frontend-image
steps to completee2e-tests
job which will run e2e tests in both
chrome and firefox.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。