playwright-test
Creates Playwright browser-based integration tests for Vaadin views covering navigation, form interactions, grid operations, and dialog handling. Use when the user asks to "write Playwright tests", "create e2e tests", "write integration tests", "test in the browser", or mentions end-to-end testing, browser tests, UI integration tests, or Playwright for Vaadin.
What this skill does
# Playwright Test
## Instructions
Create Playwright integration tests for Vaadin views on the use case $ARGUMENTS. Playwright tests run in a real browser against a running
application.
## DO NOT
- Use Mockito for mocking
- Access services, repositories, or DSLContext directly
- Delete all data in cleanup (only remove data created during the test)
- Forget to wait for Vaadin connections to settle after interactions
- Assume all grid rows are rendered (viewport limits visible rows)
## Test Data Strategy
Use existing test data from Flyway migrations in `src/test/resources/db/migration`.
| Approach | Location | Purpose |
|------------------|----------------------------------------|--------------------------|
| Flyway migration | src/test/resources/db/migration/V*.sql | Existing test data |
| Manual cleanup | @AfterEach method | Remove test-created data |
## Test Class Structure
Extend from `PlaywrightIT` base class.
## Template
Use [templates/ExampleViewIT.java](templates/ExampleViewIT.java) as the test class structure.
## Key Classes
| Class | Purpose |
|--------|---------------------------------------|
| GridPw | Grid interactions and assertions |
| page | Playwright Page object for navigation |
| mopo | Vaadin connection helper |
## Common Patterns
### Navigate to View
```java
page.navigate("http://localhost:%d/persons".formatted(localServerPort));
```
### Wait for Vaadin Connection
Always wait after interactions that trigger server communication:
```java
mopo.waitForConnectionToSettle();
```
### Grid Operations
```java
GridPw gridPw = new GridPw(page);
// Get rendered row count (viewport limited!)
int count = gridPw.getRenderedRowCount();
// Get specific row
GridPw.RowPw row = gridPw.getRow(0);
// Get cell text
String text = row.getCell(0).innerText();
// Select row
row.select();
mopo.waitForConnectionToSettle();
```
### Locate Vaadin Components
```java
// Text field by label
Locator nameField = page.locator("vaadin-text-field")
.filter(new Locator.FilterOptions().setHasText("Name"))
.locator("input");
// Button by text
Locator saveButton = page.locator("vaadin-button")
.filter(new Locator.FilterOptions().setHasText("Save"));
// ComboBox
Locator comboBox = page.locator("vaadin-combo-box")
.filter(new Locator.FilterOptions().setHasText("Country"));
```
### Form Interactions
```java
// Get input value
String value = nameField.inputValue();
// Fill text field
nameField.fill("New Value");
// Click button
saveButton.click();
mopo.waitForConnectionToSettle();
// Clear and fill
nameField.clear();
nameField.fill("Updated Value");
```
### ComboBox Interactions
```java
// Open and select
comboBox.click();
page.locator("vaadin-combo-box-item")
.filter(new Locator.FilterOptions().setHasText("Option 1"))
.click();
mopo.waitForConnectionToSettle();
```
### Dialog Interactions
```java
// Confirm dialog
page.locator("vaadin-confirm-dialog")
.locator("vaadin-button")
.filter(new Locator.FilterOptions().setHasText("Confirm"))
.click();
mopo.waitForConnectionToSettle();
```
## Assertions Reference
Use AssertJ assertions:
| Assertion Type | Example |
|----------------|-------------------------------------------------------------|
| Text content | `assertThat(row.getCell(0).innerText()).isEqualTo("x")` |
| Input value | `assertThat(field.inputValue()).isEqualTo("value")` |
| Row count | `assertThat(gridPw.getRenderedRowCount()).isGreaterThan(0)` |
| Visibility | `assertThat(element.isVisible()).isTrue()` |
| Enabled | `assertThat(element.isEnabled()).isTrue()` |
## Viewport Considerations
Playwright tests run in a real browser with viewport constraints:
- Not all grid rows may be rendered
- Use `isGreaterThan()` instead of exact counts for grids
- Scroll if needed to access off-screen elements
## Workflow
1. Read the use case specification
2. Use TodoWrite to create a task for each test scenario
3. Create test class extending PlaywrightIT
4. For each test:
- Navigate to the view
- Wait for connection to settle
- Locate components using Vaadin selectors
- Perform interactions (always wait after)
- Assert expected outcomes
- Clean up test data if created during test
5. Run tests to verify they pass
6. If a test fails:
- Verify the view loaded correctly (check page URL and title)
- Ensure `mopo.waitForConnectionToSettle()` is called after every interaction
- Check that test data exists in the Flyway test migrations
- For grid assertions, use `isGreaterThan()` instead of exact counts
7. Mark todos complete
Related in Design
contribute
IncludedLocal-only OSS contribution command center. Auto-refreshes the user's in-flight PR and issue state on invoke so conversations start with full context — no need to brief Claude on what's in flight. Helps the user find issues to contribute to on GitHub, builds per-repo dossiers of what each upstream expects (CLA, DCO, branch convention, AI policy, draft-first, review bots, issue templates), runs deterministic gates before any external action so AI-assisted contributions don't reach maintainers as slop. State is markdown-only: candidate files at ~/.contribute-system/candidates/, repo dossiers at ~/.contribute-system/research/, append-only event log at ~/.contribute-system/log.jsonl. No database, no cloud calls. Use when the user asks about their PRs / issues / contributions, wants to find new work to take on, claim an issue, build/refresh a repo's dossier, or draft a Design Issue or PR. Trigger with "/contribute", "what's my PR status", "find a contribution", "claim issue X", "draft a Design Issue for Y", "refresh dossier for Z".
architectural-analysis
IncludedUser-triggered deep architectural analysis of a codebase or scoped subtree across eight modes — information architecture, data flow, integration points, UI surfaces, interaction patterns, data model, control flow, and failure modes. This skill should be used when the user asks to "diagram this codebase," "map the architecture," "show the data flow," "give me an ERD," "trace control flow," "find the integration points," "verify the layout pattern," "audit the UX architecture," or any similar request whose primary deliverable is mermaid diagrams plus cited reports under docs/architecture/. Dispatches haiku/sonnet sub-agents in parallel for per-mode exploration, then verifies every citation mechanically before any node lands in a diagram. Not for one-off prose explanations of code (use code-explanation) or for high-level system design from scratch (use system-design).
mcp
IncludedModel Context Protocol (MCP) server development and tool management. Languages: Python, TypeScript. Capabilities: build MCP servers, integrate external APIs, discover/execute MCP tools, manage multi-server configs, design agent-centric tools. Actions: create, build, integrate, discover, execute, configure MCP servers/tools. Keywords: MCP, Model Context Protocol, MCP server, MCP tool, stdio transport, SSE transport, tool discovery, resource provider, prompt template, external API integration, Gemini CLI MCP, Claude MCP, agent tools, tool execution, server config. Use when: building MCP servers, integrating external APIs as MCP tools, discovering available MCP tools, executing MCP capabilities, configuring multi-server setups, designing tools for AI agents.
react-native-skia
IncludedDesign, build, debug, and optimise high-polish animated graphics in React Native or Expo using @shopify/react-native-skia, Reanimated, and Gesture Handler. Use when the user wants canvas-driven UI, shaders, paths, rich text, image filters, sprite fields, Skottie, video frames, snapshots, web CanvasKit setup, or performance tuning for custom motion-heavy elements such as loaders, hero art, cards, charts, progress indicators, particle systems, or gesture-driven surfaces. Also use when the user asks for fluid, glow, glass, blob, parallax, 60fps/120fps, or GPU-friendly animated effects in React Native, even if they do not explicitly say "Skia". Do not use for ordinary form/layout work with standard views.
plaid
IncludedProduct Led AI Development — guides founders from idea to launched product. Six capabilities: Idea (discover a product idea), Validate (pressure-test the idea against fatal flaws, problem reality, competition, and 2-week MVP feasibility), Plan (vision intake + document generation), Design (translate image references into a design.md spec), Launch (go-to-market strategy), and Build (roadmap execution). Use when someone says "PLAID", "plaid idea", "help me find an idea", "product idea", "idea from my business", "idea from my expertise", "plaid validate", "validate my idea", "pressure-test", "is this idea good", "find fatal flaws", "validate the problem", "plan a product", "define my vision", "generate a PRD", "product strategy", "plaid design", "design from image", "translate image to design", "create design.md", "extract design tokens", "plaid launch", "go-to-market", "launch plan", "GTM strategy", "launch playbook", "plaid build", "build the app", "start building", or "execute the roadmap".
nextjs-framer-motion-animations
IncludedAdds production-safe Motion for React or Framer Motion animations to Next.js apps, including reveal, hover and tap micro-interactions, whileInView, stagger, AnimatePresence, layout and layoutId transitions, reorder, scroll-linked UI, and lightweight route-content transitions. Use when the user asks to add, refactor, or debug Motion or Framer Motion in App Router or Pages Router codebases, especially around server/client boundaries, reduced motion, LazyMotion, bundle size, hydration, or route transitions. Avoid for GSAP-style timelines, WebGL or 3D scenes, heavy scroll storytelling, or CSS-only effects unless Motion is explicitly requested.