Merge branch 'fix-failing-tests'
This commit is contained in:
@@ -28,7 +28,7 @@ const teams = settings.mergeDefaultTeams(AppConfig.data.teams);
|
||||
remote.getCurrentWindow().removeAllListeners('focus');
|
||||
|
||||
if (teams.length === 0) {
|
||||
window.location = 'settings.html';
|
||||
remote.getCurrentWindow().loadFile('browser/settings.html');
|
||||
}
|
||||
|
||||
function showBadgeWindows(sessionExpired, unreadCount, mentionCount) {
|
||||
|
@@ -63,6 +63,7 @@ describe('application', function desc() {
|
||||
|
||||
it('should show settings.html when there is no config file', async () => {
|
||||
await this.app.client.waitUntilWindowLoaded();
|
||||
await this.app.client.pause(1000);
|
||||
const url = await this.app.client.getUrl();
|
||||
url.should.match(/\/settings.html$/);
|
||||
|
||||
|
Reference in New Issue
Block a user