Skip to content

Commit

Permalink
(fix #8) remove flaky assertion against location.href
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasGruenwald committed Jun 22, 2024
1 parent 96013f9 commit 45b8645
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/chrobot_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ pub fn open_test() {
chrobot.open(browser, test_url, 10_000)
|> should.be_ok()

chrobot.await_selector(page, "body")
|> should.be_ok()

chrobot.eval(page, "window.location.href")
|> chrobot.as_value(dynamic.string)
chrobot.await_selector(page, "#wibble")
|> should.be_ok()
|> should.equal(test_url)

chrobot.get_all_html(page)
|> should.be_ok()
Expand Down

0 comments on commit 45b8645

Please sign in to comment.