Skip to content

Commit

Permalink
add in a tactical sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
koaning committed Dec 6, 2023
1 parent ef11cbf commit d34a5b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_e2e.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ def test_basic_interactions(query, base_call):
page.get_by_label("New query:").fill(query)
page.get_by_role("button", name="Refresh Stream").click()
page.get_by_text("Reset stream?").click()

time.sleep(0.5)

# Hit accept a few times, making sure that the query appears
for _ in range(10):
page.get_by_label("accept (a)").click()
time.sleep(0.5)
# We check the entire container because we're interested in the meta information.
# The retreived text may not have a perfect match for the query, but the meta should!
elem = page.locator(".prodigy-container").first
print()
print(elem.inner_text())
assert query in elem.inner_text().lower()
page.get_by_label("accept (a)").click()
time.sleep(0.5)

0 comments on commit d34a5b3

Please sign in to comment.