Checks
A check step says what a person should see. It passes when the page agrees and fails when it does not. Every example on this page is a sentence Belay understands as written.
Name the text, and where it should be. See Writing steps for how “is” and “shows” differ.
Check that the page shows "Order placed".Check that the cart shows "Trail Helmet".Check that the heading is "Your cart".Check that the email error says "Enter a valid email".Check that the page shows "Order placed" and "Thank you".Text that should not be there
Section titled “Text that should not be there”Check that the page does not show "Out of stock".Check that the cart does not show "Trail Helmet".What a message means
Section titled “What a message means”When the exact words don’t matter, write “mentions”. Belay judges whether the text says it.
Check that the error message mentions that the email is required.A value with its label
Section titled “A value with its label”Name the row or item, then the label and the value. The value must be in that row, so another row’s value cannot pass.
Check that the "Trail Helmet" row in the cart has price "$89.00".Check that the receipt shows Total "$89.00".Text placed by another element
Section titled “Text placed by another element”Check that "Required" appears below the Name field.The start, the end, or the shape of a text
Section titled “The start, the end, or the shape of a text”Check that the order number starts with "SC-".Check that the ticket number looks like SC-1035.“Looks like SC-1035” checks the form (SC- and four digits), not that exact number.
Fields
Section titled “Fields”What a field holds is its value, and its hint text is its placeholder.
Check that the Email field has "robin@example.com".Check that the Phone field has the value "555-0100".Check that the Name field has the placeholder "First Last".Check that the Name field is empty.Check that the Email field is not empty.Shown, hidden, and other states
Section titled “Shown, hidden, and other states”Check that the "Trail Helmet" card is shown.Check that an error message is shown.Check that the Delete button is not shown.Check that the Save button is disabled.Check that the Save button is enabled.Check that the "Add a helmet" checkbox is checked.Check that the "Road" tab is selected.Check that the Details section is expanded.Check that the Details section is collapsed.Check that the Name field is focused.Check that the Notes field is read-only.Check that the Notes field is editable.How many
Section titled “How many”A count is exact.
Check that the cart has 2 items.Check that there are exactly 3 rows in the Repairs table.Check that the cart has 0 items.Every, only, and none
Section titled “Every, only, and none”Check that every row in the Repairs table shows "Ready".Check that no row in the Repairs table shows "Overdue".Check that only "Road" and "Mountain" are shown in the Type list.“Every” and “no” need at least one row to look at. With no rows at all the step ends Not found, so an empty table does not pass by accident. “Only” means the list holds exactly these and nothing else.
Colour
Section titled “Colour”Belay judges a colour from a screenshot of the element, so name the colour as a person would.
Check that the Pay button is green.Check that the price text is red.A colour given as a hex code, such as #C8102E, is measured on the page, not judged. It passes when the element’s colour is that code, or so close that a person could not tell them apart.
Position and size
Section titled “Position and size”These are measured on the page, not judged.
Check that the Save button is to the right of the Cancel button.Check that the Save button is left of the Delete button.Check that the Email field is above the Password field.Check that the Save button is wider than the Cancel button.Check that the Save button is taller than the Cancel button.Layout problems
Section titled “Layout problems”Also measured.
Check that the page does not scroll sideways.Check that the product title is not cut off.Run these after Set the window to mobile size. to check a page on a phone.
What only a person could judge
Section titled “What only a person could judge”When no exact measure fits, Belay judges the check from a screenshot, and the step’s reading says so. Use this for pictures and for how something looks.
Check that the hero photo shows a mountain bike.Check that the Sale badge looks like a warning.Check that nothing on the page overlaps.A judgment from a picture is less certain than a measured check. When Belay is not sure either way, the step ends Inconclusive, not passed.
Text is never judged from a picture: a step that quotes a text compares that text.
The address and the page title
Section titled “The address and the page title”Check that the address ends with /cart.Check that the address contains "/cart".Check that the page title is "Cart".A value remembered earlier
Section titled “A value remembered earlier”Remember the Total in the order summary as {{total}}.Check that the Total on the receipt is {{total}}.See Values in steps.
Not supported yet
Section titled “Not supported yet”A step that asks for one of these needs a change, sometimes with a suggested step to use in its place. Read the suggestion’s note: it says what the replacement no longer checks.
- A count of “at least”, “at most”, “more than”, or “fewer than”. Counts are exact.
- A count that is “not” a number, such as “does not have 3 items”.
- A count of only the items that show some text, such as “2 rows show Ready”.
- That two elements are aligned, unless the step says how, such as which edge they share.
Some checks you might expect to be measured are judged from a screenshot instead, and the step’s reading says so. Treat them as less certain:
- The order of a list, such as “sorted by price, lowest first”.
- A position with “not”, such as “is not above”. A size with “not” is measured.
- A named colour with “not”, such as “is not red”.