Screens: what the rig claims
The aim of a rig is every screen in every state, and the screens table says how far it gets.
The aim of a rig is every screen in every state. [[screens]] says how far it gets, as claims the
check holds it to, and says plainly what it doesn't reach and why.
[[screens]]
route = "/[locale]/orders/[id]/refund"
states = [
{ name = "empty", by = "refund-an-order/start-refund" },
{ name = "sent", by = "refund-an-order/send" },
{ name = "refused", unreached = "orchard-api refuses a second refund, and the fixtures hold no refunded order." },
]
[[screens]]
route = "/[locale]/admin/reports"
unreached = "Needs the admin role, which no fixture has."- A screen is named by its
routeor itsname, one of them. A route suits a web app. A name suits a window. - A screen has
states, the ones the rig reaches it in, orunreached, a sentence saying why it reaches none. One of the two, not both and not neither. - A state has a
nameand eitherbyorunreached.by = "journey/step"names the journey and the step that shows the state. The check refuses abythat names no step the rig has. It looks in the journey's expanded steps, so the step of a run isjourney/<id in the run>. unreachedis an answer, not a gap. It tells the person and the agent that reads the rig that the rig knows it misses this state and what stands in the way. Write what stands in the way, as the example does.
pitafix rig check counts them: "2 states claimed, 2 said unreached" is the screens' states with a
by, and those with an unreached, a screen's own unreached counting once.
pitafix rig test holds each claim to the walk. The claimed step must have been walked, must have
passed, and must have left a picture of the screen. The test finds the step by position: the N-th
step of a rig journey is the N-th step record of that journey's run. It doesn't check the screen's
name against what the step drew.