All trainings

Angular Testing with Vitest and Playwright

From the first unit test to reliable end-to-end tests: Vitest and Playwright for Angular – fast, stable and maintainable.

  • 1 or 2 Days
  • Intermediate
  • Remote or in-house
  • German & English

Is this training right for your team?

Who it’s for

  • Angular developers who want to start testing properly
  • Developers who write tests but don’t trust them
  • Teams with slow, flaky or missing test suites
  • Teams introducing Vitest or Playwright

Afterwards your team can

  • Test components, services, routing and directives with Vitest
  • Handle asynchronous code and HTTP in tests without hacks
  • Write end-to-end tests with Playwright that survive refactorings
  • Decide what to test on which level – and what not to

Prerequisites

  • Practical Angular experience
  • No testing experience needed – we start with the basics
  • A laptop with your usual development setup

Tests are only useful when the team trusts them. This workshop starts with the basics and ends with a test suite your team can rely on: component and service tests with Vitest, end-to-end tests with Playwright – fast, stable and readable.

One day covers unit and component tests; the second day adds end-to-end tests with Playwright and time for your own test suite.

Agenda

The order and the depth of each block are adapted to your team – topics you already master are skipped, your questions get the time instead.

  1. Testing Basics

    • What to test on which level: unit, component, end-to-end
    • Vitest in an Angular CLI project
    • Readable tests: arrange, act, assert
  2. Testing Services and HTTP

    • Services with dependency injection and TestBed
    • HTTP calls with provideHttpClientTesting
    • Synchronous and asynchronous code, fake timers
  3. Testing Components

    • Components with inputs, outputs and signals
    • Templates, the async pipe and control flow
    • Zoneless change detection in tests
  4. Routing and Directives

    • Router tests with RouterTestingHarness
    • Guards and resolvers
    • Attribute and structural directives
  5. End-to-End Testing with Playwright

    • Locators and assertions that survive refactorings
    • Mocking the backend with route interception
    • Running in CI and debugging failing tests
  6. Your Test Suite

    • Making slow or flaky tests reliable
    • Questions from your code base

Your trainer

  • Portrait of Fabian Gosebrink

    Fabian Gosebrink

    Microsoft MVP, Google Developer Expert

    Builds Angular applications with teams every week and has given 120+ conference talks on Angular, state management and architecture.

    Full profile →
Request a training

Bring this training to your team

For your team only – remote or at your office, on dates that suit you, with examples from your own code base where it helps.

or email [email protected] · By sending you agree to our privacy policy.

Newsletter

Only the latest articles and announcements.

No spam. Promised. By subscribing you agree to our privacy policy.

Swiss Digital ServicesSwiss Made Software
Contact

What else?
Just say hello – Fabian replies within one business day

Address
Offering Solutions Software GmbH
Haldenstrasse 3
8357 Aadorf, Switzerland
Social