mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
Revert "Fix often occurring bug when testing UI"
This reverts commit 987af951d8
.
This commit is contained in:
parent
987af951d8
commit
58db1352fa
1 changed files with 12 additions and 0 deletions
|
@ -901,6 +901,16 @@ try:
|
||||||
driver, By.XPATH, "//input[@type='file' and @name='file']"
|
driver, By.XPATH, "//input[@type='file' and @name='file']"
|
||||||
).send_keys(join(Path.cwd(), "test.zip"))
|
).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(
|
print(
|
||||||
"The bad plugin has been rejected, trying to add a good plugin ...",
|
"The bad plugin has been rejected, trying to add a good plugin ...",
|
||||||
flush=True,
|
flush=True,
|
||||||
|
@ -918,6 +928,8 @@ try:
|
||||||
False,
|
False,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
assert_alert_message(driver, "Successfully created plugin")
|
||||||
|
|
||||||
external_plugins = safe_get_element(
|
external_plugins = safe_get_element(
|
||||||
driver,
|
driver,
|
||||||
By.XPATH,
|
By.XPATH,
|
||||||
|
|
Loading…
Reference in a new issue