Write down what actually made a UI test go red
The earlier entry said only "suspect what the test does not control". Having now found it, the specifics are worth more than the warning. State leaks between UI tests because @AppStorage is UserDefaults and the simulator keeps them for days; the fix is a debug hook writing to the normal domain, because launch arguments land in NSArgumentDomain and outrank the app, making settings unchangeable rather than merely predictable. Elements below the fold of a lazy container genuinely do not exist, which reads exactly like a bug. Both cost a full evening. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
542dd925d0
commit
463f45cacb
3 files changed
+51
-6
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pdat-swift-practice",
|
||||
"version": "0.3.0",
|
||||
"version": "0.4.0",
|
||||
"description": "Curated Apple platform findings with sources, plus practices learned from production incidents.",
|
||||
"author": {
|
||||
"name": "PDAT s.r.o.",
|
||||
|
||||
Reference in new issue
Block a user