Demo
GUIDE

Cases 59–66 · Input, charts, and forms

2 MIN READ

Case 59 — Use a keyboard action

gherkin
When I search for [$.testdata.search.term] using the global search field
And I press Enter in that field
Then the search results page should be visible

Case 60 — Accept a browser confirmation

gherkin
When I click the "Reset" button
And I wait until a browser confirmation asks to reset the form
And I accept the confirmation
Then every form field should return to its default value

Case 61 — Hover over a chart point

Identify the chart, series, and data point.

gherkin
When I hover over the point for `2026-08-01` in the "Monthly Revenue" chart series "Actual"
Then the tooltip should show date `2026-08-01`
And it should show revenue [$.testdata.revenue.august_1]

Do not use guessed coordinates when a data value identifies the point.

Case 62 — Process every chart on a page

gherkin
When I collect every rendered chart on the "Overall" tab in top-to-bottom order
START LOOP for each unprocessed chart on the "Overall" tab
  When I record its title and chart type
  And I hover a rendered data element appropriate to that chart type
  And I require its tooltip to be visible and non-empty
  And I append one result row to summary.csv
  And I mark the chart as processed
END LOOP when the page cannot scroll further and no unprocessed chart remains
Then the summary row count should equal the collected chart count

Case 63 — Complete independent form fields

Keep independent siblings consecutive.

gherkin
When I fill "Automation {timestamp}" in the "Account Name" text field
And I fill "ACC-{timestamp}" in the "Account Number" text field
And I select "Technology" from the "Industry" picklist
And I ensure the "Active" checkbox is checked

Case 64 — Reveal a conditional field

gherkin
When I select "Other" from the "Reason" picklist
And I wait until the "Other Reason" text field becomes visible and required
And I fill "Customer request" in the "Other Reason" text field
Then the field should contain "Customer request"

Case 65 — Validate a required field

gherkin
When I clear the required "Account Name" field
And I click the "Save" button
Then the form should remain open
And the "Account Name" field should show "Complete this field"

Case 66 — Use Scenario Outline for fixed component values

gherkin
Scenario Outline: Select each supported account type
  When I select "<account_type>" from the "Type" picklist
  Then the "Type" picklist should show "<account_type>"

  Examples:
    | account_type      |
    | Customer - Direct |
    | Customer - Channel |

Use this for a known input matrix, not a runtime-discovered collection.