feat(locator): add hasNot to filter

Merged
21
19d ago
+164-54

What and why

  • locator.filter({ hasNot }) drops matches whose subtree resolves a locator, the counterpart of has.
  • Same scoping rules as has; works on the web and mobile engines and the generic resolver.
  • Docs, skill references and a changeset updated.

Issue

Fixes #1292

Verified

Ran it locally: yes

  • pnpm check, e2e unit tests and mobile tests pass.
  • Web integration tests (Chromium) not run; web passes hasNot straight to Playwright.

Checklist

  • Changeset added
  • Docs updated
  • Contract change: tests/types/sdk-types.ts updated
  • Engine contract change: changesets for e2e, @e2e-dev/web, and @e2e-dev/mobile