edit external plugins link and fix ui tests menu selector

This commit is contained in:
florian 2024-01-08 21:07:01 +01:00
parent 34ce47079e
commit 0bcb4e19c2
No known key found for this signature in database
GPG key ID: 93EE47CC3D061500
2 changed files with 13 additions and 13 deletions

View file

@ -22,7 +22,7 @@ Here is the list of "official" plugins that we maintain (see the [bunkerweb-plug
If you want to quickly install external plugins, you can use the `EXTERNAL_PLUGIN_URLS` setting. It takes a list of URLs, separated with space, pointing to compressed (zip format) archive containing one or more plugin(s).
You can use the following value if you want to automatically install the official plugins : `EXTERNAL_PLUGIN_URLS=https://github.com/bunkerity/bunkerweb-plugins/archive/refs/tags/v1.2.zip`
You can use the following value if you want to automatically install the official plugins : `EXTERNAL_PLUGIN_URLS=https://github.com/bunkerity/bunkerweb-plugins/archive/refs/tags/v1.3.zip`
### Manual

View file

@ -299,7 +299,7 @@ with driver_func() as driver:
access_page(
driver,
driver_wait,
"/html/body/aside[1]/div[1]/div[2]/ul/li[2]/a",
"/html/body/aside[1]/div[1]/div[3]/ul/li[2]/a",
"instances",
)
@ -369,7 +369,7 @@ with driver_func() as driver:
access_page(
driver,
driver_wait,
"/html/body/aside[1]/div[1]/div[2]/ul/li[3]/a",
"/html/body/aside[1]/div[1]/div[3]/ul/li[3]/a",
"global config",
)
@ -529,7 +529,7 @@ with driver_func() as driver:
access_page(
driver,
driver_wait,
"/html/body/aside[1]/div[1]/div[2]/ul/li[4]/a",
"/html/body/aside[1]/div[1]/div[3]/ul/li[4]/a",
"services",
)
@ -891,7 +891,7 @@ with driver_func() as driver:
access_page(
driver,
driver_wait,
"/html/body/aside[1]/div[1]/div[2]/ul/li[5]/a",
"/html/body/aside[1]/div[1]/div[3]/ul/li[5]/a",
"configs",
)
@ -1020,7 +1020,7 @@ location /hello {
access_page(
driver,
driver_wait,
"/html/body/aside[1]/div[1]/div[2]/ul/li[6]/a",
"/html/body/aside[1]/div[1]/div[3]/ul/li[6]/a",
"plugins",
)
@ -1163,7 +1163,7 @@ location /hello {
print("The plugin has been deleted, trying cache page ...", flush=True)
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[2]/ul/li[7]/a", "cache")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[3]/ul/li[7]/a", "cache")
### CACHE PAGE
@ -1188,7 +1188,7 @@ location /hello {
print("The cache file content is correct, trying logs page ...", flush=True)
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[2]/ul/li[8]/a", "logs")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[3]/ul/li[8]/a", "logs")
### LOGS PAGE
@ -1310,7 +1310,7 @@ location /hello {
print("Date filter is working, trying jobs page ...", flush=True)
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[2]/ul/li[9]/a", "jobs")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[3]/ul/li[9]/a", "jobs")
### JOBS PAGE
@ -1443,7 +1443,7 @@ location /hello {
print("Cache download is working, trying profile page ...", flush=True)
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[2]/ul/li[10]/a", "profile")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[3]/ul/li[10]/a", "profile")
### PROFILE PAGE
@ -1485,7 +1485,7 @@ location /hello {
access_page(driver, driver_wait, "//button[@value='login']", "home")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[2]/ul/li[10]/a", "profile")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[3]/ul/li[10]/a", "profile")
username_input = safe_get_element(driver, By.ID, "admin_username")
@ -1542,7 +1542,7 @@ location /hello {
access_page(driver, driver_wait, "//button[@value='login']", "home")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[2]/ul/li[10]/a", "profile")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[3]/ul/li[10]/a", "profile")
print("Successfully logged in with new password, trying 2FA ...", flush=True)
@ -1642,7 +1642,7 @@ location /hello {
print("Successfully logged in with 2FA, trying to deactivate 2FA ...", flush=True)
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[2]/ul/li[10]/a", "profile")
access_page(driver, driver_wait, "/html/body/aside[1]/div[1]/div[3]/ul/li[10]/a", "profile")
assert_button_click(driver, "//button[@data-tab-handler='totp']")