Tweak pause of modal tests
This commit is contained in:
@@ -333,7 +333,7 @@ describe('browser/settings.html', function desc() {
|
|||||||
it('should disappear on click Close', async () => {
|
it('should disappear on click Close', async () => {
|
||||||
await this.app.client.
|
await this.app.client.
|
||||||
click('.modal-dialog button.close').
|
click('.modal-dialog button.close').
|
||||||
pause(500);
|
waitForVisible(modalTitleSelector, 5000, true);
|
||||||
const existing = await this.app.client.isExisting(modalTitleSelector);
|
const existing = await this.app.client.isExisting(modalTitleSelector);
|
||||||
existing.should.be.false;
|
existing.should.be.false;
|
||||||
});
|
});
|
||||||
@@ -341,7 +341,7 @@ describe('browser/settings.html', function desc() {
|
|||||||
it('should disappear on click background', async () => {
|
it('should disappear on click background', async () => {
|
||||||
await this.app.client.
|
await this.app.client.
|
||||||
click('body').
|
click('body').
|
||||||
pause(500);
|
waitForVisible(modalTitleSelector, 5000, true);
|
||||||
const existing = await this.app.client.isExisting(modalTitleSelector);
|
const existing = await this.app.client.isExisting(modalTitleSelector);
|
||||||
existing.should.be.false;
|
existing.should.be.false;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user