Collections, files, and forms
Table or grid
Find a row by a unique business key before acting.
When I find the row whose "Invoice Number" is [$.testdata.invoice.number]
And I click "View" in that row
Then the invoice detail page should show [$.testdata.invoice.number]Never use the first row unless position is the business requirement.
Editable grid
Name the row, column, new value, and save boundary.
When I edit the "Quantity" cell to `3` in the row whose "Product Code" is "CAM-4K"
And I save the grid
Then that row should show Quantity `3`
And the calculated line total should updateVirtualized table
Define the scroll and stop rule:
When I search the virtualized table for Account ID [$.testdata.account.id]
And I scroll through unprocessed rows until the account is found or no new rows load
Then exactly one matching row should be foundPagination
When I search each results page in order for [$.testdata.record.id]
And I continue until the record is found or the last page is reached
Then the record should be present exactly onceTree or tree grid
When I expand the "North America" tree node
And I expand its "United States" child node
Then the "California" node should be visibleRepeating cards or sections
Use a card title or business key:
When I click "Edit" in the card titled "Primary Address"
Then the "Edit Primary Address" form should openFile upload
Name the file source and the upload component.
When I upload [$.testdata.documents.contract] using the "Upload Files" control in the "Files" section
And I click "Done" in the upload dialog
Then the uploaded filename should appear in the "Files" list
And its status should be "Uploaded"For drag-and-drop areas, still describe the named drop zone:
When I upload [$.testdata.import.csv] using the "Drag and drop files here" upload areaFile download
When I click the "Download Report" button
And I save this file as [$.output.report_file]
Then the downloaded filename should end with `.csv`
And the file should contain the expected column headersThe Then lines are included only when filename and content are acceptance
criteria of this testcase. If the testcase exists only to produce a file for a
later testcase, stop after saving the output:
When I click the "Download Report" button
And I save this file as [$.output.report_file]In the consuming testcase, receive that testsuite output as an input variable:
When I read data as CSV from [$.input.report_file]
Then the CSV should contain the columns "Account ID", "Status", and "Updated At"Image
Then the "Company Logo" image should be visible
And its accessible name should be "ACME logo"Chart
Name the chart, series, point, and expected overlay.
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 the tooltip should show revenue [$.testdata.revenue.august_1]Do not use guessed coordinates when the chart value or series can identify the target.
Canvas, diagram, or map
Use named landmarks and observable outcomes:
When I select the map marker labeled "Warehouse 12"
Then the marker details panel should show warehouse ID "WH-12"If the canvas has no semantic labels, describe the visual object, containing panel, and expected state precisely.
Slider
When I set the "Confidence Threshold" slider to `75`
Then the slider should show `75`
And the threshold label should show `75%`Drag and drop
Name both endpoints:
When I drag the card "Review Contract" from the "To Do" column to the "In Progress" column
Then the card should appear in "In Progress"
And it should no longer appear in "To Do"Keyboard action
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 visibleBrowser confirmation, alert, or prompt
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 valueClipboard
When I click the "Copy API Key" button
Then the confirmation message should say "Copied"
And the copied value should match the masked key's full stored value without displaying it in the reportNEVER
Never print secrets into feature files or run summaries.
Forms as component systems
Independent sibling fields
Write independent fields consecutively so TestZeus can complete them efficiently:
When I fill "Automation {timestamp}" in the "Account Name" field
And I fill "ACC-{timestamp}" in the "Account Number" field
And I select "Technology" from the "Industry" picklist
And I ensure the "Active" checkbox is checkedController and dependent fields
Separate them and wait for the dependent control to refresh:
When I select "Hardware" from the "Product Family" picklist
And I wait until the "Product" picklist becomes enabled
And I select "4K Camera" from the "Product" picklistConditional fields
State the condition and the newly required fields:
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" fieldSave and validation
When I click the "Save" button
Then no required-field error should be visible
And the form should close
And the saved record should show the filled valuesFor negative validation:
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"