Why it matters
A mechanic scheduling a repair needs to distinguish an absent ticket from a missing part estimate.
Core concepts
Worklist membership
The page loads tickets assigned to the shop and filters them by state.
Optional details
A second lookup supplies the estimated parts date. Show an unknown date if that lookup has no result.
Try it step by step
- Create a fictional ticket in the waiting state.
- Check the shop, state and worklist filter.
- Compare the stored ticket and the parts lookup with what appears on screen.
Write the expected result for each test case before running it.
Worked example
A bicycle shop sees ticket B-7 on its repair desk with a blank parts date. The ticket loaded. The mechanic can now check the parts request without reopening the ticket.
Common mistake
Assuming a missing label means a record was deleted.
Practice exercise
Write one test for a missing ticket and one for a visible ticket with no parts estimate.
Check your understanding
Which lookup explains a blank parts date on a visible ticket?
- The parts request
- The shop logo
- The ticket count
Show answer
The parts request. Find which step supplies each visible fact.
Takeaway
Find which step supplies each visible fact.