Skip to content

Web-first assertions (toBeVisible/toHaveText/toHaveValue/toBeChecked/toBeEnabled/toHaveAttribute/toHaveCount) #1194

@ChrisRoyse

Description

@ChrisRoyse

Parent: #1192 (master #1063).

What

An assertion MCP tool taking a locator + matcher + expected, returning pass/fail with actual value. Covers the common Playwright matchers.

Where

browser_assert router; uses introspection (#1157) + actionability + selector engine.

Done when (FSV)

  • Each matcher passes on a true condition and fails on a false one, reporting actual vs expected.
  • toHaveText supports exact/substring/regex + normalized whitespace.
  • toHaveCount matches selector match count.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:claudeClaimed by Claude agentarea:mcpsynapse-mcp binaryphase:m3M3 — Reflex + MCP surfacepriority:p2Default — debt, real-path gapsource:agentFiled by an AI agenttype:taskAtomic work item

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions