Which risks and test oracles matter most for stable locators when third-party services are unreliable?
Answer
Prioritize the risks that could invalidate the user or business outcome before choosing checks by feedback value, repeatability and maintenance cost rather than automation percentage. Focus on stable locators when third-party services are unreliable. Use deterministic assertions at the lowest useful layer as the oracle. Cover isolation, synchronization, diagnostics, parallel safety and quarantine rules. Keep data and dependencies controlled enough to reproduce failures. Release only when the suite gives fast reproducible failures and its ownership cost stays visible.
Strong answer includes
- explicit risk and test oracle for stable locators
- optimizes the feedback loop
- treats flakiness as a defect
- measurable evidence and residual-risk statement
Practical example
A login-form test broke every sprint because it selected buttons by their CSS class, which the frontend team renamed during every redesign. A payment-provider sandbox used in CI was flaky about twice a week, and failures there were drowning out real signal from the team's own code. Ranking that risk above the cosmetic issues in the backlog got it a same-day fix instead of a place in next sprint's queue.