@@ -185,6 +185,17 @@ describe("browser_act orchestration", () => {
185185 expect ( result ) . toMatchObject ( { outcome : "worked" , stopped_at : 0 , stop_reason : "navigation" , final_expectation : { status : "newly_verified" } } ) ;
186186 } ) ;
187187
188+ it ( "evaluates plan expectations after terminal navigation without step expectations" , async ( ) => {
189+ const before = observation ( "before" ) ;
190+ const after = observation ( "after" , 1 ) ;
191+ const result = await runBrowserAct ( {
192+ type : "browser_act" ,
193+ steps : [ { type : "click" , ref : "e1" } ] ,
194+ expect : { type : "url" , contains : "after" } ,
195+ } , runtime ( [ before , before , after , after ] , [ waitResult ( "newly_verified" ) ] ) ) ;
196+ expect ( result ) . toMatchObject ( { outcome : "worked" , stopped_at : 0 , stop_reason : "navigation" , final_expectation : { status : "newly_verified" } } ) ;
197+ } ) ;
198+
188199 it ( "recollects a successor after a raced target boundary" , async ( ) => {
189200 const result = await runBrowserAct ( { type : "browser_act" , steps : [ { type : "click" , ref : "e1" , expect : { type : "text" , text : "Done" } } ] } , runtime ( [
190201 observation ( "before" ) , observation ( "before" ) , observation ( "after" ) , observation ( "stale" ) , observation ( "stable" ) ,
0 commit comments