Add test for failed to load URL
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user