Skip to content

Add end-to-end tests with Playwright#270

Merged
ScriptRaccoon merged 21 commits into
mainfrom
e2e
Jul 8, 2026
Merged

Add end-to-end tests with Playwright#270
ScriptRaccoon merged 21 commits into
mainfrom
e2e

Conversation

@ScriptRaccoon

@ScriptRaccoon ScriptRaccoon commented Jul 7, 2026

Copy link
Copy Markdown
Owner

The end-to-end testing framework Playwright has been added, along with a couple of tests.

Usage

Tests can be executed in the terminal with pnpm e2e. They are also included in the test workflow on GitHub. The UI version (shown below) can be started with pnpm e2e:ui.

Background

Whenever I refactor large parts of the application, I manually click through various pages to check that everything still works. Playwright automates this process, makes it more systematic, and reduces the risk of accidentally overlooking regressions.

The tests also verify various elements generated by the seed script and the deduction system, that the search produces the expected categories, and other aspects that are closely tied to the data. As such, they also verify that the data behaves correctly, in addition to the existing database unit tests.

Webkit

As usual, WebKit makes life harder for no good reason. Many simple tests fail, even though everything works correctly in a real browser. For now, I have excluded WebKit from the tests. In fact, at the moment, the tests run only on Chromium.

UI Demo

This is a visualization of the test case "user can enter properties" in search.spec.ts.

playwright-demo-720p.mov

@ScriptRaccoon ScriptRaccoon force-pushed the e2e branch 2 times, most recently from ce2bbb6 to 91d06fb Compare July 7, 2026 21:13
@ScriptRaccoon ScriptRaccoon force-pushed the e2e branch 2 times, most recently from 6e74db7 to 1ca91be Compare July 8, 2026 09:24
@ScriptRaccoon ScriptRaccoon marked this pull request as ready for review July 8, 2026 12:25
@ScriptRaccoon ScriptRaccoon force-pushed the e2e branch 3 times, most recently from 336ad13 to 23386d1 Compare July 8, 2026 20:02
@ScriptRaccoon ScriptRaccoon merged commit 891ddcb into main Jul 8, 2026
1 check passed
@ScriptRaccoon ScriptRaccoon deleted the e2e branch July 8, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant