diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-19 16:52:40 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-19 19:42:36 +0900 |
commit | ced89134e32d793d8e091113cfb20867e1c3b572 (patch) | |
tree | e438a9cec18186712fae80c0726fb720dc2f7cfc /e2e | |
parent | 3f4bc62ed515f1c5da90ee1c3e42f3d435ea6e39 (diff) |
Fix failed CircleCI
Diffstat (limited to 'e2e')
-rw-r--r-- | e2e/follow_properties.test.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/e2e/follow_properties.test.js b/e2e/follow_properties.test.js index 80040a3..5e82b50 100644 --- a/e2e/follow_properties.test.js +++ b/e2e/follow_properties.test.js @@ -126,9 +126,11 @@ describe('follow properties test', () => { }); await body.sendKeys('jj'); - let tabs = await browser.tabs.query({}); - assert.equal(tabs[0].active, false); - assert.equal(tabs[1].active, true); + await eventually(async() => { + let tabs = await browser.tabs.query({}); + assert.equal(tabs[0].active, false); + assert.equal(tabs[1].active, true); + }); }); it('should open tab in background by background:true', async () => { @@ -139,8 +141,10 @@ describe('follow properties test', () => { }); await body.sendKeys('jj'); - let tabs = await browser.tabs.query({}); - assert.equal(tabs[0].active, true); - assert.equal(tabs[1].active, false); + await eventually(async() => { + let tabs = await browser.tabs.query({}); + assert.equal(tabs[0].active, true); + assert.equal(tabs[1].active, false); + }); }); }); |