From 58db1352fa21e0b76d4dca84870b974aed329225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Thu, 4 May 2023 17:26:35 -0400 Subject: [PATCH] Revert "Fix often occurring bug when testing UI" This reverts commit 987af951d8a5c309ba54e8fc6aef6584b655d6c5. --- tests/ui/main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/ui/main.py b/tests/ui/main.py index eda52f4d..8d0a919a 100644 --- a/tests/ui/main.py +++ b/tests/ui/main.py @@ -901,6 +901,16 @@ 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, @@ -918,6 +928,8 @@ try: False, ) + assert_alert_message(driver, "Successfully created plugin") + external_plugins = safe_get_element( driver, By.XPATH,