Files
logseq/clj-e2e
Tienson Qin f594e2034f fix(rtc): batch store and validate db (#12249)
* fix(rtc): batch store and validate db

* fix: logseq.db/transact! shouldn't distinct tx-data

since move-op include 2 steps:
1. insert-block
2. update-attrs

This results in db invalid after step 1.

* refactor: add transact-with-temp-conn!

* bump nbb-logseq and add tests for ldb/transact* fns

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
2025-12-09 20:47:37 +08:00
..
2025-04-24 01:13:28 +08:00
2025-12-06 21:14:18 +08:00

e2e

e2e tests for Logseq app.

Usage

Before running tests, ensure the following:

  • The app's js and css assets are built and located at ../public/.
  • Those assets are served on http://localhost:3002/ via bb serve.

Then, run the project's tests:

$ clojure -T:build test

If you would like to run individual tests, pass options to the test runner through clojure -M:test. For example, add a ^:focus on a test and then run clojure -M:test -i focus.

If e2e tests fail, clj-e2e/e2e-dump/ contains console logs and screenshots to help debug.