Hide tabs when the number of teams is 1

This commit is contained in:
Yuya Ochiai
2016-01-13 22:07:37 +09:00
parent 48f63b6bcb
commit 1cc68197d2
2 changed files with 52 additions and 23 deletions

View File

@@ -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()