testbench-testing

Write end-to-end browser tests for Vaadin 25 apps using TestBench.

6|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/marcushellberg/vaadin-development-plugin --skill testbench-testing-marcushellberg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testbench-testing
Source: https://github.com/marcushellberg/vaadin-development-plugin/tree/main/skills/testbench-testing
Command: npx skills add https://github.com/marcushellberg/vaadin-development-plugin --skill testbench-testing-marcushellberg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing robust end-to-end tests for Vaadin applications using TestBench can be complex due to real-browser execution, page-object patterns, and the need for stable element queries. This section guides you through best practices to create maintainable, reliable tests for Vaadin 25.

Core Features & Use Cases

  • Structured guidance for building end-to-end tests with Vaadin TestBench, including the Page Object pattern and ElementQuery usage.
  • Coverage of real-browser execution, cross-browser validation, and visual regression checks to ensure UI consistency.
  • Clear recommendations for test organization, setup, and integration with JUnit 4/5 and Vaadin MCP docs.

Quick Start

Set up Vaadin TestBench and write a first end-to-end test using a simple PageObject example.

Frequently Asked Questions about testbench-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write end-to-end tests for Vaadin applications using TestBench?

End-to-end tests for Vaadin applications use TestBench to implement Page Object patterns and ElementQuery logic, ensuring stable element queries during real-browser execution. This approach validates critical user flows within Vaadin 25 apps.

Does TestBench support JUnit 5 for running Vaadin browser tests?

TestBench supports both JUnit 4 and JUnit 5 for executing Vaadin browser tests. You can integrate Page Object design and ElementQuery patterns with either framework to validate critical user flows.

What is the best way to structure Page Objects for Vaadin TestBench?

Using the TestBench Element API alongside ElementQuery patterns is the best way to structure Page Objects for Vaadin. This design creates maintainable, reliable tests for critical user flows and cross-browser validation.

Can I perform visual regression checks with Vaadin TestBench?

You can perform visual regression checks with Vaadin TestBench to ensure UI consistency. The testing framework supports visual validation alongside real-browser execution and cross-browser testing for Vaadin 25 apps.

Why are my Vaadin TestBench element queries failing during real-browser execution?

Vaadin TestBench element queries often fail during real-browser execution if the TestBench Element API is not properly applied. Using structured Page Object patterns and ElementQuery logic ensures stable, reliable element retrieval.