Demo
GUIDE

Navigation and overlays

3 MIN READ

Button

gherkin
When I click the "Save" button in the "New Account" modal
Then the modal should close
And the Account record page should be visible

Always state the outcome of the click.

gherkin
When I click the "View All" link in the "Recent Cases" section
Then the Cases list page should be visible

Icon-only button

Name the purpose and the landmark:

gherkin
When I click the search icon next to the "Company" field
Then the Company lookup should open

Do not write click the magnifying-glass icon when several are present.

Opening the menu and choosing the item are separate interactions.

gherkin
When I open the "More Actions" menu for the record [$.testdata.record.name]
And I click "Delete" in that menu
Then the delete confirmation dialog should open

Tab

gherkin
When I open the "Related" tab on the Account record
Then the "Contacts" related list should be visible
And the "Related" tab should be selected

Accordion or expandable section

Write the desired expanded state:

gherkin
When I expand the "Billing Address" section
Then the section should be expanded
And the "Billing Street" field should be visible
gherkin
When I click "Accounts" in the breadcrumb
Then the Accounts list page should be visible

Stepper or wizard

Name the current and target steps:

gherkin
Given the "Customer Details" step is active
When I complete its required fields and click "Next"
Then the "Review" step should become active

Scope every modal interaction to its title.

gherkin
When I wait until the "Delete Account" confirmation dialog is ready
And I click "Delete" in the "Delete Account" dialog
Then the dialog should close
And the account should no longer appear in the list

Drawer or side panel

gherkin
When I open the "Filters" drawer
And I wait until the "Filters" drawer is ready
And I select "Open" in the "Status" filter and click "Apply"
Then the drawer should close
And every visible result should have status "Open"

Popover

gherkin
When I click the information icon next to "Risk Score"
Then the "Risk Score" popover should be visible
And it should contain the risk explanation

Tooltip

gherkin
When I hover over the "Annual Revenue" information icon
Then a tooltip should appear containing "Estimated yearly revenue"

Toast

A toast is transient. Read it immediately, then confirm durable state.

gherkin
Then I should see a success toast containing "Account was created"
And the Account record page should show "Automation Account {timestamp}"

Browser tab or window

Name tabs by purpose, not position.

gherkin
When I click the lookup icon next to the "Company" field
And I wait until a Company lookup tab opens
And I switch to the Company lookup tab
And I select "ACME"
Then I should return to the original form
And the "Company" field should show "ACME"

Iframe or embedded application

State when the interaction moves inside or outside the frame.

gherkin
When I wait until the "Invoice Console" iframe is loaded
And I click "New Invoice" inside the iframe
Then the "New Invoice" form should be visible inside the iframe

Shadow-DOM and web-component surfaces

Describe the visible component exactly as the user sees it. TestZeus handles the technical boundary.

gherkin
When I select "Warm" from the "Rating" picklist

NEVER

Do not mention shadow roots, component tags, internal markup, or generated element IDs in customer-authored tests.