File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
src/SignalR/clients/ts/FunctionalTests/scripts Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 47
47
// We use the launchers themselves to figure out if the browser exists. It's a bit sneaky, but it works.
48
48
tryAddBrowser ( "ChromeHeadlessNoSandbox" , ChromeHeadlessBrowser . prototype ) ;
49
49
tryAddBrowser ( "ChromiumHeadlessIgnoreCert" , ChromiumHeadlessBrowser . prototype ) ;
50
- if ( os . platform ( ) !== 'darwin' && ! tryAddBrowser ( "FirefoxHeadless" , FirefoxHeadlessBrowser . prototype ) ) {
51
- tryAddBrowser ( "FirefoxDeveloperHeadless" , FirefoxDeveloperHeadlessBrowser . prototype ) ;
50
+
51
+ if ( os . platform ( ) !== 'darwin' ) {
52
+ if ( ! tryAddBrowser ( "FirefoxHeadless" , FirefoxHeadlessBrowser . prototype ) ) {
53
+ tryAddBrowser ( "FirefoxDeveloperHeadless" , FirefoxDeveloperHeadlessBrowser . prototype ) ;
54
+ }
55
+ } else {
56
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1871366
57
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1871447
58
+ // It looks like some Entitlements issue with Firefox and macOS, additionally, it seems 'firefox-bin' is being removed which is what the karma firefox launcher uses by default
59
+ tryAddBrowser ( "FirefoxHeadlessMac" , FirefoxHeadlessBrowser . prototype ) ;
52
60
}
53
61
54
62
// We need to receive an argument from the caller, but globals don't seem to work, so we use an environment variable.
73
81
74
82
// Ignore cert errors to allow our test cert to work (NEVER do this outside of testing)
75
83
flags : [ "--allow-insecure-localhost" , "--ignore-certificate-errors" ]
84
+ } ,
85
+ FirefoxHeadlessMac : {
86
+ base : 'FirefoxHeadless' ,
87
+
88
+ command : '/Applications/FireFox.app/Contents/MacOS/firefox'
76
89
}
77
90
} ,
78
91
} ) ;
You can’t perform that action at this time.
0 commit comments