summaryrefslogtreecommitdiff
path: root/django/test/selenium.py
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-04-16 20:00:48 +0200
committerGitHub <noreply@github.com>2025-04-16 15:00:48 -0300
commit098c8bc99c84e6b09ee0066ed85b216ec63a046a (patch)
tree91bd1c8ed3771b34f4ddf9f77f8a052dc79a64ba /django/test/selenium.py
parent6ef0f5bc272b316f0fd6fa706d7eaf8f1822faa4 (diff)
Disabled Chrome browser pop-ups that were interfering with selenium tests.
Diffstat (limited to 'django/test/selenium.py')
-rw-r--r--django/test/selenium.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/test/selenium.py b/django/test/selenium.py
index 4ef5015556..15ee3002ec 100644
--- a/django/test/selenium.py
+++ b/django/test/selenium.py
@@ -81,6 +81,10 @@ class SeleniumTestCaseBase(type(LiveServerTestCase)):
def create_options(self):
options = self.import_options(self.browser)()
+ if self.browser == "chrome":
+ # Disable Google Password Manager "Data Breach" alert pop-ups.
+ options.add_argument("--guest")
+ options.add_argument("--disable-infobars")
if self.headless:
match self.browser:
case "chrome" | "edge":