Skip to content

testmd run --url is ignored when a step hardcodes a URL (run hits prod) #123

Description

@tlemmonds

Environment: kane-cli 0.4.10

Summary
testmd run --url http://localhost:3000 did not override a _test.md step that reads Navigate to https://everdemo.onrender.com/portal — the run hit prod instead of the passed URL.

Steps to reproduce

  1. _test.md step: Navigate to https://everdemo.onrender.com/portal
  2. kane-cli testmd run <file> --url http://localhost:3000 --agent

Actual
Run navigates to the hardcoded prod URL.

Expected
--url overrides the step's base URL, or at minimum a warning that the flag was ignored.

Notes
Related but distinct from #99 (export bakes literal URLs into Playwright) and #100 (${APP_URL} vs {{VAR}}). This is the run-time override being ignored. A resolveVar-style URL substitution (like secrets) would fix the whole family.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions