mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
update test access page to fit new menu
This commit is contained in:
parent
9c38c41e8c
commit
59bce6b38a
10 changed files with 13 additions and 13 deletions
|
|
@ -14,7 +14,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the bans page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[9]/a", "bans")
|
||||
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)
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the cache page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[7]/a", "cache")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[7]/a", "cache")
|
||||
|
||||
log_info('Trying to open "jobs/asn.mmdb" cache file ...')
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the services page to create a new service ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[4]/a", "services")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[4]/a", "services")
|
||||
|
||||
assert_button_click(DRIVER, "//button[@data-services-action='new']")
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ try:
|
|||
wait_for_service("app1.example.com")
|
||||
|
||||
log_info("Navigating to the configs page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[5]/a", "configs")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[5]/a", "configs")
|
||||
|
||||
log_info("Trying to create a new config ...")
|
||||
|
||||
|
|
@ -228,7 +228,7 @@ location /hello {
|
|||
|
||||
log_info("The config has been created only for the app1.example.com service, trying to delete the service to see if the config gets deleted ...")
|
||||
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[4]/a", "services")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[4]/a", "services")
|
||||
|
||||
assert_button_click(DRIVER, "//button[@data-services-action='delete' and @data-services-name='app1.example.com']")
|
||||
|
||||
|
|
@ -239,7 +239,7 @@ location /hello {
|
|||
|
||||
log_info("The service has been deleted, checking if the config has been deleted as well ...")
|
||||
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[5]/a", "configs")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[5]/a", "configs")
|
||||
|
||||
assert_button_click(DRIVER, "//div[@data-configs-element='server-http' and @data-_type='folder']")
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the global config page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[3]/a", "global config")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[3]/a", "global config")
|
||||
|
||||
log_info("Trying filters ...")
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the instances page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[2]/a", "instances")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[2]/a", "instances")
|
||||
|
||||
no_errors = True
|
||||
retries = 0
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the jobs page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[10]/a", "jobs")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[10]/a", "jobs")
|
||||
|
||||
log_info("Trying to filter jobs ...")
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the logs page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[11]/a", "logs")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[11]/a", "logs")
|
||||
|
||||
log_info("Trying filters ...")
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the plugins page to create a new service ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[6]/a", "plugins")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[6]/a", "plugins")
|
||||
|
||||
for _ in range(5):
|
||||
get(f"http://www.example.com{UI_URL}/?id=/etc/passwd")
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ exit_code = 0
|
|||
|
||||
try:
|
||||
log_info("Navigating to the reports page ...")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[8]/a", "reports")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[8]/a", "reports")
|
||||
|
||||
with suppress(TimeoutException):
|
||||
safe_get_element(DRIVER, By.XPATH, "/html/body/main/div/div/div/h5", error=True)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ exit_code = 0
|
|||
try:
|
||||
log_info("Navigating to the services page ...")
|
||||
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[1]/div[3]/ul/li[4]/a", "services")
|
||||
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[4]/a", "services")
|
||||
|
||||
log_info("Check if default www.example.com service is here ...")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue