Fix ui tests with internal LUA timers

This commit is contained in:
Théophile Diot 2024-02-05 11:49:24 +01:00
parent e7afbc9f78
commit c1dccba6f7
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -222,6 +222,8 @@ with driver_func() as driver:
while current_time + timedelta(minutes=5) > datetime.now() and not driver.current_url.endswith("/login"):
sleep(1)
get(f"http://www.example.com{ui_url}/home?id=/etc/passwd")
### LOGIN PAGE
if not driver.current_url.endswith("/login"):
@ -1258,8 +1260,6 @@ location /hello {
print("The cache file content is correct, trying reporting page ...", flush=True)
get(f"http://www.example.com{ui_url}/home?id=/etc/passwd")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[3]/ul/li[8]/a", "reports")
### REPORTS PAGE