Skip to content

Commit

Permalink
Added brief wait for page reload
Browse files Browse the repository at this point in the history
  • Loading branch information
bartTC committed Apr 21, 2024
1 parent 60b6e23 commit 6d51bdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dynamic_raw_id/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ def test_widgets(selenium: WebDriver) -> None:
# Activate the default window
selenium.switch_to.window(selenium.window_handles[0])

# Find the attached label next to it, and draw a red border around it
# Find the attached label next to it
label = selenium.find_element(By.ID, f"{id_value}_dynamic_raw_id_label")

# Test that the displayed value matches the test value
selenium.implicitly_wait(0.5) # Wait a bit for page reload
assert label.text == test_value

# For debugging, draw green border around the label and wait a bit
# selenium.execute_script("arguments[0].style.border='3px solid green'", label)
# time.sleep(1)

0 comments on commit 6d51bdf

Please sign in to comment.