mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 03:57:09 +00:00
fix(web): install lastAction in the page before extractors read it
state.lastAction was hardcoded null on web, so every property reading it was silently vacuous: a correct property passed without ever firing.
This commit is contained in:
1 parent
df74bf4d6f
commit
1d46107ee8
4 files changed
+122
-4
No files matched your search
@@ -44,6 +44,8 @@ func (d *webMockDriver) NextActionFromV8(context.Context) (json.RawMessage, erro
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (d *webMockDriver) SetLastAction(context.Context, json.RawMessage) error { return nil }
|
||||
|
||||
// TestRunner_TraceRecordsTheValueTheVerdictUsed fails if the trace and the
|
||||
// verdict disagree about an extractor. A witness is only an explanation of a
|
||||
// violation if it holds the state the violated property was evaluated against.
|
||||
|
||||
Reference in new issue
Block a user