Hide tabs when the number of teams is 1
This commit is contained in:
@@ -106,10 +106,22 @@ describe('electron-mattermost', function() {
|
||||
}]
|
||||
};
|
||||
|
||||
before(function() {
|
||||
beforeEach(function() {
|
||||
fs.writeFileSync(config_file_path, JSON.stringify(config));
|
||||
});
|
||||
|
||||
it('should NOT show tabs when there is one team', function() {
|
||||
fs.writeFileSync(config_file_path, JSON.stringify({
|
||||
url: mattermost_url
|
||||
}));
|
||||
return client
|
||||
.init()
|
||||
.isExisting('#tabBar').then(function(isExisting) {
|
||||
isExisting.should.be.false();
|
||||
})
|
||||
.end();
|
||||
});
|
||||
|
||||
it('should set src of webview from config file', function() {
|
||||
return client
|
||||
.init()
|
||||
|
Reference in New Issue
Block a user