Skip to content

test(web): seed a clean database before each end to end run - #16

Merged
pulkitxm merged 1 commit into
mainfrom
chore/e2e-determinism
Jul 23, 2026
Merged

pulkitxm merged 1 commit into
mainfrom
chore/e2e-determinism

Conversation

@pulkitxm

Copy link
Copy Markdown
Member

Adds a Playwright global setup that reseeds, so the suite no longer carries state between runs.

The suite carried state between runs, so a second run toggled reactions
back off and asserted against data an earlier spec had changed.
@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: d81efba9-aced-49db-8752-4c4f1b4b525c

📥 Commits

Reviewing files that changed from the base of the PR and between d730791 and 0c2898b.

📒 Files selected for processing (2)
  • apps/web/e2e/global-setup.ts
  • apps/web/playwright.config.ts

📝 Walkthrough

Walkthrough

Playwright now seeds @orbit/db before web tests and increases both overall test and assertion timeouts.

Changes

Playwright test setup

Layer / File(s) Summary
Global database setup and test timing
apps/web/e2e/global-setup.ts, apps/web/playwright.config.ts
The Playwright configuration runs a global setup that synchronously seeds @orbit/db, raises the test timeout to 180 seconds, and sets the assertion timeout to 45 seconds.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes seeding a clean database before end-to-end runs, which matches the main change.
Description check ✅ Passed The description directly matches the added Playwright global setup and reseeding behavior.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/e2e-determinism

Comment @coderabbitai help to get the list of available commands.

@pulkitxm
pulkitxm merged commit c099693 into main Jul 23, 2026
4 checks passed
@pulkitxm
pulkitxm deleted the chore/e2e-determinism branch July 23, 2026 04:09
imshashank added a commit that referenced this pull request Aug 26, 2026
e2e/issues.spec.ts:89 took main red on d7df6fc against a tree byte
identical to the branch head that had just passed the same gate, and a
re-run of the unchanged commit went green.

The ceiling was the test's own. The suite default has been 180s since #16,
and 0c0b301 added a setTimeout of 120s to this one test, which lowers it,
so the heaviest test in the suite had the shortest budget while its
sibling in the same file kept 180s. It walks eight distinct routes that no
earlier test reaches, and CI runs against a dev server, so it pays a first
compile for each of them. It takes about 55s on a good run and hit exactly
2.0m on a bad one.

It gets the default back.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant