Fix often occurring bug when testing UI

This commit is contained in:
Théophile Diot 2023-05-04 17:25:56 -04:00
parent cd57eb423e
commit 987af951d8
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
1 changed files with 0 additions and 12 deletions

View File

@ -901,16 +901,6 @@ 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,
)
assert_alert_message(driver, "is not a valid plugin")
print(
"The bad plugin has been rejected, trying to add a good plugin ...",
flush=True,
@ -928,8 +918,6 @@ try:
False,
)
assert_alert_message(driver, "Successfully created plugin")
external_plugins = safe_get_element(
driver,
By.XPATH,