Skip to content

Commit

Permalink
update bans page test check
Browse files Browse the repository at this point in the history
  • Loading branch information
syrk4web committed May 22, 2024
1 parent 7120dc1 commit 1cd1fa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ui/bans_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
log_info("Navigating to the bans page ...")
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[9]/a", "bans")

try:
safe_get_element(DRIVER, By.XPATH, "/html/body/main/div/div[2]/div/h5", error=True)
except TimeoutException:
is_ban_list_hidden = DRIVER.execute_script("return document.querySelector('[data-bans-list-container]').classList.contains('hidden')")

if not is_ban_list_hidden:
log_exception("Bans present even though they shouldn't be, exiting ...")
exit(1)

Expand Down

0 comments on commit 1cd1fa7

Please sign in to comment.