Repository navigation
Conversation
…quest Playwright builds and starts the desktop app (production build) and the phone app (Vite build) and drives them: - desktop: the demo trip (days, to-dos, budget, map), dragging a card to another day and keeping it after a reload, the card editor with price hints, Paid and delete, the to-do list, the budget dialog (paid ticks, currency and limit conversion), trip settings, a map pin highlighting its card, JSON export that parses back, the print page, and saving the trip to disk - phone: days, swiping, the budget tab and a budget row leading to its day, and importing a trip file They run offline and without keys: the browser gets a plain map style and fixed exchange rates, and the app's route, place and AI lookups answer as if offline. The data folder is a temporary one. Any uncaught error in a page fails the test. CI uploads screenshots and traces of failed tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On Linux the card was cut off at the bottom of its day, so the mouse selected text instead of starting a drag. The test now also checks that the drag started. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The desktop app is tested in the browsers it supports: the installed Chrome and Edge, and Playwright's Firefox. The phone app runs in Android's WebView (Chromium), so Chrome stands in for it. CI runs one job per browser, side by side. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing a browser Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
|
Dropping the end-to-end test idea for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Playwright end-to-end tests. Until now, UI changes such as #21 (dragging, dialogs, maps) and the budget were only checked by hand in a browser.
What is tested (11 tests, about 30 s locally)
Desktop app (production build,
next start):parseTripFile, and the print page shows the bookings and the total.Phone app (Vite build, Pixel 7 viewport):
.tripdeck.jsonfile.How it stays reliable
/api/route,/api/places,/api/elevation,/api/timezoneand/api/aianswer 503, as they do offline, so the board shows straight-line estimates..env.local.TRIPDECK_HOMEset to “This PC” storage, so your~/.tripdeckand OneDrive are never touched.console.errorin a page fails the test; blocked requests aside.Checked
--repeat-each=5in parallel.CI
bun run test:e2eand, on failure, uploads the report with screenshots and traces as an artifact (kept 7 days).protect-main.Locally
bun run test:e2e. On Windows it uses the installed Edge. Elsewhere, runbunx playwright install chromiumonce.🤖 Generated with Claude Code