Demo
GUIDE

Cases 34–47 · Actions, navigation, and overlays

3 MIN READ

Case 34 — Click a button

Name the button, its scope, and resulting state.

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
gherkin
When I click the "View All" link in the "Recent Cases" section
Then the Cases list page should be visible

Case 36 — Use an icon-only control

Name purpose and location.

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

Case 37 — Open an overflow menu and choose an action

Opening the menu does not complete the choice.

gherkin
When I open the "More Actions" menu in the row for [$.testdata.account.name]
And I click "Edit" in that menu
Then the "Edit Account" form should open

Case 38 — Select a tab

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

Case 39 — Expand an accordion

gherkin
When I expand the "Billing Address" section
Then the section should be expanded
And the "Billing Street" field should be visible

Case 40 — Advance a wizard or stepper

gherkin
Given the "Customer Details" step is active
When I complete every required field in that step
And I click "Next"
Then the "Review" step should become active

Do not click Next without asserting the target step.

Case 41 — Confirm a modal dialog

gherkin
Then the "Delete Account" confirmation dialog should be visible
And it should name [$.testdata.account.name]
When I click "Delete" in the "Delete Account" dialog
Then the dialog should close
And the account should no longer appear in the list

Case 42 — Use a drawer or side panel

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

Case 43 — Read a popover

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

Case 44 — Read a tooltip

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

Case 45 — Handle a success toast

Read the transient message, then confirm a durable state.

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

Case 46 — Switch to a new browser tab

Name tabs by purpose.

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"

Case 47 — Interact inside an iframe

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

State explicitly when returning to the outer page.