Fix ui tests with the external plugins

This commit is contained in:
Théophile Diot 2023-05-04 18:51:44 -04:00
parent 74fe9d5c16
commit 9ff64426b7
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 9 additions and 1 deletions

View File

@ -901,6 +901,14 @@ try:
driver, By.XPATH, "//input[@type='file' and @name='file']"
).send_keys(join(Path.cwd(), "test.zip"))
access_page(
driver,
driver_wait,
"//div[@data-plugins-upload='']//button[@type='submit']",
"plugins",
False,
)
print(
"The bad plugin has been rejected, trying to add a good plugin ...",
flush=True,
@ -921,7 +929,7 @@ try:
external_plugins = safe_get_element(
driver,
By.XPATH,
"//div[@data-plugins-external='external']",
"//div[@data-plugins-external=' external ']",
multiple=True,
)