iamvery / skipper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› Assertions after element targeting still doesn't work

iamvery opened this issue Β· comments

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.