What strategies and code patterns should SDETs evaluate during developer PR reviews to enhance application testability?
Asked by The SDET Playbook
Asked Sep 28, 2026Viewed 0 times
What strategies and code patterns should SDETs evaluate during developer PR reviews to enhance application testability?
Asked by The SDET Playbook
Sign in to answer and to vote.
Look for the seams a test needs, and ask for them while the change is still cheap to adjust:
Date.now(), new Date() or Math.random() directly produces results a test cannot predict. Ask for an injected clock or seed, or make sure the test framework can fake them.data-testid only where no meaningful accessible name exists. Don't add an aria-label just to give tests a hook: it changes what screen-reader users hear.Sources: Fowler: dependency injection, Playwright locators, MDN: aria-label, Fowler