fix: use .first() in waitForNodes to avoid strict mode violation

waitForSelector tolerates multiple matches but locator().waitFor()
enforces strict single-element matching. The default workflow has
7 nodes, so the bare locator always fails.

Amp-Thread-ID: https://ampcode.com/threads/T-019d797f-578f-7399-bc07-e278fa246f3f
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Alexander Brown
2026-04-10 15:32:45 -07:00
parent c7ecfabbca
commit c2d2c18e4d

View File

@@ -146,7 +146,7 @@ export class VueNodeHelpers {
expectedCount
)
} else {
await this.page.locator('[data-node-id]').waitFor()
await this.page.locator('[data-node-id]').first().waitFor()
}
}