Add pause() to stabilize tests
This commit is contained in:
@@ -106,7 +106,7 @@ describe('browser/index.html', function desc() {
|
||||
}]
|
||||
}));
|
||||
return this.app.restart().then(() => {
|
||||
return this.app.client.waitUntilWindowLoaded().pause(1000);
|
||||
return this.app.client.waitUntilWindowLoaded().pause(1500);
|
||||
}).then(() => {
|
||||
return this.app.browserWindow.getTitle().should.eventually.equal('Mattermost Desktop testing html');
|
||||
});
|
||||
@@ -176,6 +176,7 @@ describe('browser/index.html', function desc() {
|
||||
// See settings_test for specs that cover the actual prompt
|
||||
return this.app.client.waitUntilWindowLoaded().
|
||||
click('#tabBarAddNewTeam').
|
||||
pause(500).
|
||||
isExisting('#newServerModal').should.eventually.be.true;
|
||||
});
|
||||
});
|
||||
|
@@ -299,12 +299,14 @@ describe('browser/settings.html', function desc() {
|
||||
it('should not be valid if no team name has been set', () => {
|
||||
return this.app.client.
|
||||
click('#saveNewServerModal').
|
||||
pause(500).
|
||||
isExisting('.has-error #teamNameInput').should.eventually.equal(true);
|
||||
});
|
||||
|
||||
it('should not be valid if no server address has been set', () => {
|
||||
return this.app.client.
|
||||
click('#saveNewServerModal').
|
||||
pause(500).
|
||||
isExisting('.has-error #teamUrlInput').should.eventually.equal(true);
|
||||
});
|
||||
|
||||
@@ -348,6 +350,7 @@ describe('browser/settings.html', function desc() {
|
||||
return this.app.client.
|
||||
setValue('#teamUrlInput', 'superInvalid url').
|
||||
click('#saveNewServerModal').
|
||||
pause(500).
|
||||
isExisting('.has-error #teamUrlInput').should.eventually.equal(true);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user