feat: SDA-1748 (Add support for Cloud Config) (#878)

* SDA-1748 - Initial Cloud config

* SDA-1748 - Read menu items enabled values from filtered cloud config

* SDA-1748 - Fix unit tests

* SDA-1748 - Fix issues with custom title bar and devtools

* SDA-1748 - Fix unit tests
This commit is contained in:
Kiran Niranjan
2020-03-03 11:15:27 +05:30
committed by GitHub
parent 2495e591de
commit 45cfbbdd6b
26 changed files with 437 additions and 123 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import { app } from './__mocks__/electron';
jest.mock('../src/common/utils', () => {
return {
config: {
getGlobalConfigFields: jest.fn(() => {
getCloudConfigField: jest.fn(() => {
return {
customFlags: {
authServerWhitelist: 'url',
@@ -35,7 +35,7 @@ describe('chrome flags', () => {
(isMac as any) = true;
(isWindowsOS as any) = false;
(isLinux as any) = false;
config.getGlobalConfigFields = jest.fn(() => {
config.getConfigFields = jest.fn(() => {
return {
customFlags: {
authServerWhitelist: 'url',
@@ -59,7 +59,7 @@ describe('chrome flags', () => {
});
it('should call `setChromeFlags` correctly when `disableGpu` is false', () => {
config.getGlobalConfigFields = jest.fn(() => {
config.getConfigFields = jest.fn(() => {
return {
customFlags: {
authServerWhitelist: 'url',