mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix account page web UI tests
This commit is contained in:
parent
65e9f96587
commit
93e4e63503
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue