StrikekitStrikekit

hover

Move the pointer over a labeled element

Hover to reveal menus, tooltips, or hidden controls. Pair with should see / should in … see … to assert revealed content.

Syntax

When I hover on "<target>" [by …]

Qualifiers

QualifierRoleExample
onTarget labelhover on "Profile"
by …Optional find hinthover on "Profile" by id

Requirements

ItemContract
Element / control shapeGeneral resolve (fill → click → checkbox). Same shape rules as labeled actions — see click for the role=button vs default text nuance
How the label bindsAuto-find or by …
Qualifiers that change resolveon + optional find hint
PlatformWeb
Wrong shape → use insteadNeed click → click

See also UI contracts.

Examples

When I hover on "Profile"
Then I should see "Sign out"
When I hover on "chart" by id

On this page