mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
update services test
change selenium keyboard by script injection to change input values : this avoid Selenium overflow / unreachable element error and do not diminish test because this part is about creating service (and not checking input validity because already done previously on same test)
This commit is contained in:
parent
2133baab81
commit
ab0cab7335
1 changed files with 2 additions and 2 deletions
|
|
@ -257,11 +257,11 @@ try:
|
|||
|
||||
reverse_proxy_host_input = safe_get_element(DRIVER, By.ID, "REVERSE_PROXY_HOST")
|
||||
assert isinstance(reverse_proxy_host_input, WebElement), "Reverse proxy host input is not a WebElement"
|
||||
reverse_proxy_host_input.send_keys("http://app1:8080")
|
||||
DRIVER.execute_script(f"""return document.querySelector('input#REVERSE_PROXY_HOST[data-setting-input]').value = 'http://app1:8080' """)
|
||||
|
||||
reverse_proxy_url_input = safe_get_element(DRIVER, By.ID, "REVERSE_PROXY_URL")
|
||||
assert isinstance(reverse_proxy_url_input, WebElement), "Reverse proxy url input is not a WebElement"
|
||||
reverse_proxy_url_input.send_keys("/")
|
||||
DRIVER.execute_script(f"""return document.querySelector('input#REVERSE_PROXY_URL[data-setting-input]').value = '/' """)
|
||||
|
||||
log_info("Set new service values, trying to save ...")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue