diff options
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); + }); }); }); |