Skip to content

🐛 Assertions after element targeting still doesn't work #9

Description

@iamvery

Problem

The selected element remains in scope in the pipeline after an assertion. Here's an example:

start(conn, path)
|> assert_visible(".foo", "Bar")
|> assert_visible("Baz")

Fails like:

Assertion with =~ failed
     code:  assert html =~ expected_html
     left:  "<div class=\"foo\">Bar</div>"
     right: "Baz"

Expected behavior:
The second assertion is in the scope of the entire page, not the previously selected element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions