fix: unexpected openExternal dialog on macOS Tahoe (#48518)
fix: unexpected openExternal dialog on macOS Tahoe Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
29e7189c66
commit
e533887749
2 changed files with 11 additions and 0 deletions
|
|
@ -82,6 +82,11 @@ describe('shell module', () => {
|
|||
]);
|
||||
});
|
||||
|
||||
ifit(process.platform === 'darwin')('throws when there is no application registered to open the URL', async () => {
|
||||
const url = `unknownscheme-${Date.now()}://test`;
|
||||
await expect(shell.openExternal(url)).to.eventually.be.rejectedWith(/No application found to open URL/);
|
||||
});
|
||||
|
||||
it('opens an external link in the renderer', async () => {
|
||||
const { url, requestReceived } = await urlOpened();
|
||||
const w = new BrowserWindow({ show: false, webPreferences: { sandbox: false, contextIsolation: false, nodeIntegration: true } });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue