[MM-43656] Flush cookies to disk on finishing custom login (#2076)

* [MM-43656] Flush cookies to disk on finishing custom login

* Fixed a test

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Devin Binnie
2023-02-01 14:32:22 -05:00
committed by GitHub
parent d5838a4fa8
commit f62944c5a4
3 changed files with 9 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ jest.mock('electron', () => ({
setWindowOpenHandler: jest.fn(),
},
})),
session: {},
}));
jest.mock('../allowProtocolDialog', () => ({}));
@@ -57,6 +58,10 @@ jest.mock('common/utils/url', () => ({
isChannelExportUrl: jest.fn(),
}));
jest.mock('main/app/utils', () => ({
flushCookiesStore: jest.fn(),
}));
jest.mock('../../../electron-builder.json', () => ({
protocols: [
{