fix(runner): fatal on permanent WDA drop during hierarchy fetch

This commit is contained in:
pj committed 2026-04-23 17:48:18 +07:00
1 parent 6bc3de1241
commit 0f1f3eb457
1 file changed
+3
+3
View File
@@ -106,6 +106,9 @@ func Run(ctx context.Context, options Options) (Summary, error) {
g.Wait() g.Wait()
if hierarchyErr != nil { if hierarchyErr != nil {
if isWDADrop(hierarchyErr) {
return summary, fmt.Errorf("WDA connection permanently lost at step %d - re-run the test: %w", stepIndex, hierarchyErr)
}
logger.Warn("hierarchy fetch failed", "step", stepIndex, "err", hierarchyErr) logger.Warn("hierarchy fetch failed", "step", stepIndex, "err", hierarchyErr)
} }
treeSize := 0 treeSize := 0