-
Notifications
You must be signed in to change notification settings - Fork 15k
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: refactor context isolation spec #14394
Conversation
spec/api-browser-window-spec.js
Outdated
show: false, | ||
webPreferences: { | ||
contextIsolation: true, | ||
preload: path.join(fixtures, 'api', 'isolated-preload.js') | ||
} | ||
}) | ||
if (ws != null) ws.destroy() |
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 is better to keep this.
The afterEach
hook won't be called if a test fails, and a window will be leaked.
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.
^
97e78c9
to
3b1fb22
Compare
@alexeykuzmin have made the changes, thanks! |
No Release Notes |
Description of Change
Fixes #14346
Checklist
npm test
passesRelease Notes
Notes: no-notes