Slide 47
Slide 47 text
How to write test code
which ages well
• Strict encapsulation
• Create action files for each component
• Write utility fns for state checks (expections)
• Write utility fns for interaction (state change)
• Keep the test code DRY
• Use fns composition
• Delegate work to other, existing action files
• Create action file for each view
• Create scenario files
• Static test data
• Mock HTTP Layer (Disclaimer)