Fix nested promises
This commit is contained in:
@@ -83,7 +83,9 @@ describe('application', function desc() {
|
|||||||
url: env.mattermostURL
|
url: env.mattermostURL
|
||||||
}));
|
}));
|
||||||
return this.app.restart().then(() => {
|
return this.app.restart().then(() => {
|
||||||
return this.app.client.waitUntilWindowLoaded().getUrl();
|
return this.app.client.waitUntilWindowLoaded();
|
||||||
|
}).then(() => {
|
||||||
|
return this.app.client.getUrl();
|
||||||
}).then((url) => {
|
}).then((url) => {
|
||||||
url.should.match(/\/index.html$/);
|
url.should.match(/\/index.html$/);
|
||||||
});
|
});
|
||||||
@@ -95,7 +97,9 @@ describe('application', function desc() {
|
|||||||
url: env.mattermostURL
|
url: env.mattermostURL
|
||||||
}));
|
}));
|
||||||
return this.app.restart().then(() => {
|
return this.app.restart().then(() => {
|
||||||
return this.app.client.waitUntilWindowLoaded().getUrl();
|
return this.app.client.waitUntilWindowLoaded();
|
||||||
|
}).then(() => {
|
||||||
|
return this.app.client.getUrl();
|
||||||
}).then((url) => {
|
}).then((url) => {
|
||||||
url.should.match(/\/index.html$/);
|
url.should.match(/\/index.html$/);
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
Reference in New Issue
Block a user