Skip to content

fix: resolve E2E test failures — nested transaction + tiptap timing#271

Merged
d-oit merged 1 commit into
mainfrom
fix/e2e-nested-transaction-and-timing
Jun 5, 2026
Merged

fix: resolve E2E test failures — nested transaction + tiptap timing#271
d-oit merged 1 commit into
mainfrom
fix/e2e-nested-transaction-and-timing

Conversation

@d-oit
Copy link
Copy Markdown
Owner

@d-oit d-oit commented Jun 5, 2026

Summary

Fixes all 4 previously failing E2E tests.

Changes

  • db-worker.ts: Defensive COMMIT before BEGIN TRANSACTION with narrowed catch clause. Fixes SQLite WASM quirk where INSERT...RETURNING with returnValue:"resultRows" leaves autocommit off.
  • library.spec.ts, features.spec.ts: Wait for .ProseMirror[contenteditable="true"] instead of .tiptap-content visibility. Ensures useEditor hook has resolved before clicking Save.

Validation

  • 19/19 E2E tests pass ✅
  • 310/310 unit tests pass ✅
  • Lint clean ✅
  • Typecheck clean ✅

Co-authored-by: d-oit 6849456+d-oit@users.noreply.github.com

- db-worker.ts: defensive COMMIT before BEGIN TRANSACTION to handle
  SQLite WASM quirk where INSERT...RETURNING leaves autocommit off
- library.spec.ts, features.spec.ts: wait for ProseMirror
  contenteditable=true instead of tiptap-content visibility to ensure
  useEditor hook has resolved before clicking Save

Fixes all 4 previously failing E2E tests.

Co-authored-by: d-oit <6849456+d-oit@users.noreply.github.com>
@github-actions github-actions Bot added config tests Related to automated/manual tests labels Jun 5, 2026
@deepsource-io
Copy link
Copy Markdown

deepsource-io Bot commented Jun 5, 2026

DeepSource Code Review

We reviewed changes in 1a4881d...8f5bb88 on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
JavaScript Jun 5, 2026 3:18p.m. Review ↗
Python Jun 5, 2026 3:18p.m. Review ↗
Shell Jun 5, 2026 3:18p.m. Review ↗
SQL Jun 5, 2026 3:18p.m. Review ↗

Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@d-oit d-oit merged commit db48662 into main Jun 5, 2026
18 of 20 checks passed
@d-oit d-oit deleted the fix/e2e-nested-transaction-and-timing branch June 5, 2026 15:19
@codacy-production
Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 2 duplication

Metric Results
Complexity 0
Duplication 2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config tests Related to automated/manual tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants