Update tests to stablize on local machines
makeSingleInstance test: On Windows, the test often fails, so skipped. Window title test: Extend pause duration to wait updating title.
This commit is contained in:
@@ -62,7 +62,7 @@ describe('application', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it('should be stopped when the app instance already exists', function(done) {
|
||||
it.skip('should be stopped when the app instance already exists', function(done) {
|
||||
this.app.start().then(() => {
|
||||
const secondApp = env.getSpectronApp();
|
||||
secondApp.start().then(() => {
|
||||
|
@@ -104,7 +104,7 @@ describe('browser/index.html', function() {
|
||||
}]
|
||||
}));
|
||||
return this.app.restart().then(() => {
|
||||
return this.app.client.waitUntilWindowLoaded().pause(500);
|
||||
return this.app.client.waitUntilWindowLoaded().pause(1000);
|
||||
})
|
||||
.then(() => {
|
||||
return this.app.browserWindow.getTitle().should.eventually.equal('Mattermost Desktop testing html');
|
||||
|
Reference in New Issue
Block a user