Add test for failed to load URL

This commit is contained in:
Yuya Ochiai
2016-03-05 20:52:27 +09:00
parent 1fad30aed7
commit 1ccb7cebce
2 changed files with 17 additions and 2 deletions

View File

@@ -166,6 +166,21 @@ describe('electron-mattermost', function() {
})
.end();
});
it('should show error when using incorrect URL', function() {
this.timeout(30000)
fs.writeFileSync(config_file_path, JSON.stringify({
version: 1,
teams: [{
name: 'error_1',
url: 'http://false'
}]
}));
return client
.init()
.waitForVisible('#mattermostView0-fail', 20000)
.end();
});
});
describe('settings.html', function() {