Skip to content

Feature request: Add ProgramTest.ensurePageChange #165

@jfmengels

Description

@jfmengels

There is a expectPageChange function in the API, but there is no ensurePageChange.

Context

We would like to have a test that asserts the flow of multiple pages, and the flow includes a click on a link.

-- ...
  |> ProgramTest.clickLink "Text" "href"
  |> ProgramTest.ensurePageChange "/href"
  -- do more assertions once the page has changed

Is there a limitation in the framework to do this, or is it counter to the philosophy of the tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThis is a question about the package, and not actually an "issue".

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions