Fix often occurring bug when testing the web UI
This commit is contained in:
parent
ac94e5072a
commit
914686e78e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue