Update tests for latest options
This commit is contained in:
@@ -89,10 +89,10 @@ describe('browser/settings.html', function desc() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Allow mixed content', () => {
|
||||
describe('Display secure content only', () => {
|
||||
[true, false].forEach((v) => {
|
||||
it(`should be saved and loaded: ${v}`, () => {
|
||||
const webPreferences = v ? 'allowDisplayingInsecureContent' : '';
|
||||
const webPreferences = v ? '' : 'allowDisplayingInsecureContent';
|
||||
env.addClientCommands(this.app.client);
|
||||
|
||||
return this.app.client.
|
||||
@@ -107,7 +107,7 @@ describe('browser/settings.html', function desc() {
|
||||
click('#btnSave').
|
||||
pause(1000).then(() => {
|
||||
const savedConfig = JSON.parse(fs.readFileSync(env.configFilePath, 'utf8'));
|
||||
savedConfig.disablewebsecurity.should.equal(v);
|
||||
savedConfig.disablewebsecurity.should.equal(!v);
|
||||
}).
|
||||
getAttribute('.mattermostView', 'webpreferences').then((disablewebsecurity) => { // confirm actual behavior
|
||||
// disablewebsecurity is an array of String
|
||||
@@ -141,7 +141,7 @@ describe('browser/settings.html', function desc() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Show tray icon', () => {
|
||||
describe('Show icon in menu bar / notification area', () => {
|
||||
it('should appear on darwin or linux', () => {
|
||||
const expected = (process.platform === 'darwin' || process.platform === 'linux');
|
||||
env.addClientCommands(this.app.client);
|
||||
@@ -151,7 +151,7 @@ describe('browser/settings.html', function desc() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Minimize to tray', () => {
|
||||
describe('Leave app running in notification area when application window is closed', () => {
|
||||
it('should appear on linux', () => {
|
||||
const expected = (process.platform === 'linux');
|
||||
env.addClientCommands(this.app.client);
|
||||
@@ -171,7 +171,7 @@ describe('browser/settings.html', function desc() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Flash taskbar icon on new messages', () => {
|
||||
describe('Flash taskbar icon when a new message is received', () => {
|
||||
it('should appear on win32 and linux', () => {
|
||||
const expected = (process.platform === 'win32' || process.platform === 'linux');
|
||||
env.addClientCommands(this.app.client);
|
||||
@@ -181,7 +181,7 @@ describe('browser/settings.html', function desc() {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Show red icon for unread', () => {
|
||||
describe('Show red badge on taskbar icon to indicate unread messages', () => {
|
||||
it('should appear on darwin or win32', () => {
|
||||
const expected = (process.platform === 'darwin' || process.platform === 'win32');
|
||||
env.addClientCommands(this.app.client);
|
||||
|
Reference in New Issue
Block a user