Mega Yu ad0363c86e remove keyboard acceleration feature and related tests 2 天之前
..
.clj-kondo 28850387a1 enhance(android): update color definitions 5 月之前
.lsp 2c6247a8d7 chore: update .lsp & gitignore 10 月之前
dev af9b875fde Refactor scrolling behavior and enhance keyboard navigation 1 周之前
resources ed11330956 test(e2e,rtc): add test for https://github.com/logseq/db-test/issues/683 (2) 2 月之前
src 3e9e446135 Merge branch 'master' into enhance/search 1 周之前
test ad0363c86e remove keyboard acceleration feature and related tests 2 天之前
.cljfmt.edn e3734264fc test(e2e): open 2 instances, login, create rtc-graph 10 月之前
.gitignore d0a3e08958 enhance: add e2e tests for outliner ops (#11828) 10 月之前
AGENTS.md 8d7ce39897 test(e2e): add asset-blocks-validate-after-init-downloaded-test 2 月之前
README.md af9b875fde Refactor scrolling behavior and enhance keyboard navigation 1 周之前
bb.edn af9b875fde Refactor scrolling behavior and enhance keyboard navigation 1 周之前
build.clj d0a3e08958 enhance: add e2e tests for outliner ops (#11828) 10 月之前
deps.edn a9a9905b05 feat: tag-scoped property choices (#12295) 2 月之前

README.md

e2e

e2e tests for Logseq app.

Prerequisites

  • The app's JS and CSS assets are built and located at ../static/.
  • Babashka is installed.

Setup

Serve the static assets (default port 3002):

$ bb serve

To use a custom port:

$ bb serve --port 3001
$ bb serve -p 3001

Running Tests

Run all tests (namespaces ending in -basic-test):

$ bb test

Run a single test namespace:

$ bb test -n logseq.e2e.editor-basic-test

Run a single test function:

$ bb test -v logseq.e2e.editor-basic-test/toggle-between-page-and-block

Filter by metadata tag (e.g. ^:focus):

$ bb test -i focus

Combine namespace and tag filters:

$ bb test -n logseq.e2e.editor-basic-test -i focus

Run tests against a custom port:

$ bb test -p 3001

Run tests and serve together (starts both in parallel):

$ bb dev
$ bb dev -p 3001

How -i Works

The -i/--include flag is a cognitect test-runner option. It filters tests by Clojure metadata key. Add ^:focus to any deftest and pass -i focus to run only those tests:

(deftest ^:focus my-test
  ...)

RTC Tests

Run RTC extra tests (served + tested in parallel):

$ bb run-rtc-extra-test
$ bb run-rtc-extra-part2-test

Debugging

When tests fail, clj-e2e/e2e-dump/ contains console logs and screenshots.