mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 20:30:17 -06:00
Feature test improvement and fix intermittent failures part of #3936
This commit is contained in:
1 parent
7090c02014
commit
9f455a514e
21 files changed
+1213
-726
No files matched your search
@@ -88,7 +88,18 @@ class CheckDebuggerForXssFeatureTest(BaseFeatureTest):
|
||||
|
||||
# If debugger plugin is not found
|
||||
if is_error and is_error.text == "Debugger Error":
|
||||
self.page.click_modal('OK')
|
||||
click = True
|
||||
while click:
|
||||
try:
|
||||
self.page.click_modal('OK')
|
||||
wait.until(EC.invisibility_of_element(
|
||||
(By.XPATH, "//div[contains(@class, 'alertify') and "
|
||||
"not(contains(@class, 'ajs-hidden'))]//div["
|
||||
"contains(@class,'ajs-header')]")
|
||||
))
|
||||
click = False
|
||||
except TimeoutException:
|
||||
pass
|
||||
self.skipTest(
|
||||
"Please make sure that debugger plugin is properly configured"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user