You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/evaluate-snippet-failure-reasons.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
"@qawolf/cli": patch
3
3
---
4
4
5
-
Tell a runner that cannot evaluate snippets apart from one that could not be reached, so the message names which it is and only the reachable case suggests retrying.
5
+
`qawolf runner exec` now tells apart a runner with nothing attached to evaluate a snippet (`runner-cannot-evaluate-snippets`, exit `2`, which will never clear) from one that could not be reached (`runner-unreachable`, exit `4`, which may still be starting or busy) instead of reporting both the same way. Only the unreachable message warns that the snippet may still be executing, since only that case can have taken effect before its answer was lost.
`The runner answered "${failureReason}", which this version of the CLI does not know how to report. Upgrade with npm install -g @qawolf/cli.`,
19
19
runnerHasNoScreen:
20
20
"This runner does not run a browser on a virtual desktop, so there is nothing about it to see or drive. Retrying will never help: launch a playwright runner instead.",
21
-
runnerHasNoScreenToEvaluate:
22
-
"The runner has no live page to evaluate the snippet against: a freshly launched runner has no page until a run opens one, so run a flow on it with qawolf runner run first. If it is not a runner that runs a browser at all, this will never clear. It is not proof the snippet did not run, so do not resubmit one that mutates the page without reading qawolf runner events console first.",
`The runner answered "${failureReason}", which this version of the CLI does not know how to report. Upgrade with npm install -g @qawolf/cli.`,
25
21
inspectNeedsABrowserRunner:
26
22
"This runner is a mobile device, and element and page HTML are a browser's shapes. Retrying will never help. Launch a playwright runner to inspect one.",
`Could not read "${path}". Name a readable file, or "-" to read the snippet from stdin.`,
51
47
snippetRan:
52
48
"The snippet ran. Its value is not returned: read anything it printed with qawolf runner events console.",
49
+
// Alone among these failure reasons, this one may have taken effect before its
50
+
// answer was lost, so the message must not invite a bare repeat.
51
+
snippetRunnerUnreachable:
52
+
"The runner could not be reached. It may still be starting, or it may have terminated after inactivity. It is not proof the snippet did not run: a snippet that outlives the answer window is still executing when you read this, so do not blindly resubmit one that mutates the page without reading qawolf runner events console first.",
53
53
snippetStopped:
54
54
"The snippet was interrupted before it finished. Anything it printed first is in qawolf runner events console.",
55
+
runnerCannotEvaluateSnippets:
56
+
"This runner has no snippet evaluator attached, so there is nothing to run code against. Retrying will never help: launch a playwright, android, ios, or windows runner instead.",
57
+
snippetAnsweredUnknown: (failureReason: string)=>
58
+
`The runner answered "${failureReason}", which this version of the CLI does not know how to report. Upgrade with npm install -g @qawolf/cli.`,
55
59
stdinEmptyAction:
56
60
'Nothing arrived on stdin. Pipe the action in, or name the action type instead of "-".',
0 commit comments