@@ -56,25 +56,31 @@ steps:
5656 - id : " open-app"
5757 action : " open file App.java"
5858 verify : " App.java file is open in the editor"
59+ verifyProblems :
60+ errors : 0
5961 waitBefore : 5
6062 timeout : 15
6163
6264 # ── Type unknown type — LS must publish an error ─────────
6365 # wiki: "type 'Gson gson;'" — line 4 places the field inside the class body.
6466 # The Problems panel is not auto-opened by autotest and the red squiggle
6567 # may take a moment to render, so verify text describes only the
66- # inserted code line. The deterministic verifyProblems.errors >= 1
67- # polls the diagnostics API and is the ground truth for the LS error.
68+ # inserted code line. The deterministic file assertion proves the edit
69+ # landed inside the class, while the exact error count establishes the
70+ # expected 0 → 1 diagnostic transition.
6871 - id : " insert-unknown-type"
6972 action : " insertLineInFile src/main/java/com/example/App.java 4 Gson gson;"
7073 verify : " App.java editor now shows the inserted 'Gson gson;' declaration inside the class body"
74+ verifyFile :
75+ path : " ~/src/main/java/com/example/App.java"
76+ matches : ' public class App \{\r?\n[ \t]*Gson gson;'
7177 verifyEditor :
7278 contains : " Gson gson;"
7379 verifyProblems :
7480 errors : 1
75- atLeast : true
7681 waitBefore : 8
7782 timeout : 60
83+ skipLlmVerify : true # File, editor, and diagnostic checks are authoritative.
7884
7985 # Close all editors before modifying pom.xml on disk. Having pom.xml
8086 # open in the editor while `insertLineInFile` writes to disk can leave
@@ -120,8 +126,11 @@ steps:
120126 verify : " pom.xml is open in the editor and shows the inserted <dependency> block referencing com.google.code.gson"
121127 verifyEditor :
122128 contains : " com.google.code.gson"
129+ verifyEditorTab :
130+ title : " pom.xml"
123131 waitBefore : 3
124132 timeout : 10
133+ skipLlmVerify : true # Editor content and visible tab checks are authoritative.
125134
126135 # Explicitly trigger a Maven re-import so the newly-added gson dependency is
127136 # picked up on the classpath. With `java.configuration.updateBuildConfiguration:
0 commit comments