-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: fix test and types in server #23693
Conversation
Thanks for taking the time to open a PR!
|
@@ -166,7 +166,7 @@ export function launch ( | |||
debuggingPort: number, | |||
args: string[] = [], | |||
defaultBrowserEnv = {}, | |||
): LaunchedBrowser { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -561,7 +561,7 @@ export async function open (browser: Browser, url: string, options: BrowserLaunc | |||
|
|||
debug('closing firefox') | |||
|
|||
originalBrowserKill.apply(browserInstance, args) | |||
return originalBrowserKill.apply(browserInstance, args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to return this so the overridden kill
has the correct signature (needs a return value of boolean
)
@@ -531,12 +531,12 @@ export async function open (browser: Browser, url: string, options: BrowserLaunc | |||
|
|||
debug('launch in firefox', { url, args: launchOptions.args }) | |||
|
|||
const browserInstance = await launch(browser, 'about:blank', remotePort, launchOptions.args, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not async, but we thought it was due to an incorrect stub:
In this case the erroneously stubbed value in the unit test was leading us to write incorrect code.
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Follow up https://github.com/cypress-io/cypress/pull/23579/files#r963726642