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:
parent
6ef0f5bc27
commit
098c8bc99c
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user