Tweak pause of modal tests

This commit is contained in:
Yuya Ochiai
2018-03-16 20:17:33 +09:00
parent c99866a971
commit aa5e6563fe

View File

@@ -333,7 +333,7 @@ describe('browser/settings.html', function desc() {
it('should disappear on click Close', async () => {
await this.app.client.
click('.modal-dialog button.close').
pause(500);
waitForVisible(modalTitleSelector, 5000, true);
const existing = await this.app.client.isExisting(modalTitleSelector);
existing.should.be.false;
});
@@ -341,7 +341,7 @@ describe('browser/settings.html', function desc() {
it('should disappear on click background', async () => {
await this.app.client.
click('body').
pause(500);
waitForVisible(modalTitleSelector, 5000, true);
const existing = await this.app.client.isExisting(modalTitleSelector);
existing.should.be.false;
});