test: add Playwright end-to-end example for FormView (#16) #18
Reference in New Issue
Block a user
Delete Branch "ai/issue-16-playwright-formview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #16
Adds the first browser-driven test to the project, using the
FormViewas the example the issue asked for.What's in it
e2e/PlaywrightTestBase—@SpringBootTest(webEnvironment = RANDOM_PORT)starts the app, Playwright launches a headless Chromium against it. One freshBrowserContextper test, so each test also gets a fresh Vaadin session. Providesnavigate("<route>")and thepage.e2e/FormViewPlaywrightTest— 5 tests:Ageis prefilled with37and read-onlySaved: Max MustermannNotes
translations.properties), sodeis not a provided locale and Vaadin servestranslations_en.propertieseven for a German browser. The base class pins the context locale toen-USto make that explicit rather than implicit.~/.cache/ms-playwrighton first use; if that is not possible (offline runner, missing system libs), the tests abort via a JUnit assumption so CI stays green rather than going red on infrastructure.CLAUDE.mdupdated: the "no test sources exist yet" note was already stale (GridStackViewTestexists), and the autofix rules'<dein Testkommando>placeholder is now./mvnw test.Test run
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ue9ZtWUBQF4SuSHpzZ3zwq