1
0
mirror of https://github.com/django/django.git synced 2025-06-01 09:39:12 +00:00

Disabled Chrome browser pop-ups that were interfering with selenium tests.

This commit is contained in:
Sarah Boyce 2025-04-16 20:00:48 +02:00 committed by GitHub
parent 6ef0f5bc27
commit 098c8bc99c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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":