Skip to main content

Overview

This guide presents common testing patterns extracted from real Drama Finder tests. Each pattern includes working examples from the test suite.

Form Testing Patterns

Basic Form Validation

Test form validation by checking required fields, format validation, and error messages:

Form with Multiple Validation Rules

Test complex validation with min/max length, patterns, and custom validators:

Testing Field Components

Test helper text, prefix, suffix, and other field decorations:

Testing Helper Components

Some fields accept components as helpers:

Selection Component Patterns

ComboBox Testing

Basic Selection

Filter and Select

Lazy Loading ComboBox

Custom Value Entry

Clear Button

DatePicker Testing

Interactive Component Patterns

Button Testing

Checkbox Testing

Accordion Testing

State Management Patterns

Focus Management

Enable/Disable State

Read-Only State

Open/Close State

Accessibility Testing Patterns

ARIA Labels

ARIA Labelled By

Theme and Styling

Grid and List Patterns

Basic Grid Testing

Filtering Grids

Dialog and Overlay Patterns

Dialog Testing

Notification Testing

Context Menu Testing

Complex Interaction Patterns

Multi-Step Form Wizard

Master-Detail Pattern

Drag and Drop (if supported)

Testing Utilities

Custom Wait Conditions

Reusable Test Helpers

Next Steps

Troubleshooting

Solutions to common testing issues

Best Practices

Best practices for maintainable tests