interaction test

A test that simulates a user clicking, typing or pressing keys and checks the component responds correctly.

In more detail

In Storybook, interaction tests are written as play functions on stories, so the same story is documentation, a visual test and a behavioural test. They catch broken behaviour, such as a click no longer firing a callback, that screenshots cannot see.

Related terms

Taught in

References