Fix account page web UI tests

This commit is contained in:
Théophile Diot 2024-02-21 09:33:39 +01:00
parent 65e9f96587
commit 93e4e63503
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -17,6 +17,8 @@ try:
log_info("Navigating to the logs page ...")
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[2]/a", "account")
assert_button_click(DRIVER, "//button[@data-tab-handler='username']")
username_input = safe_get_element(DRIVER, By.ID, "admin_username")
assert isinstance(username_input, WebElement), "The username input is not an instance of WebElement"
@ -62,6 +64,8 @@ try:
access_page(DRIVER, "//button[@value='login']", "home")
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[2]/a", "account")
assert_button_click(DRIVER, "//button[@data-tab-handler='username']")
username_input = safe_get_element(DRIVER, By.ID, "admin_username")
assert isinstance(username_input, WebElement), "The username input is not an instance of WebElement"