|
|
@ -126,10 +126,12 @@ describe('follow properties test', () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
await body.sendKeys('jj'); |
|
|
|
await body.sendKeys('jj'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await eventually(async() => { |
|
|
|
let tabs = await browser.tabs.query({}); |
|
|
|
let tabs = await browser.tabs.query({}); |
|
|
|
assert.equal(tabs[0].active, false); |
|
|
|
assert.equal(tabs[0].active, false); |
|
|
|
assert.equal(tabs[1].active, true); |
|
|
|
assert.equal(tabs[1].active, true); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
it('should open tab in background by background:true', async () => { |
|
|
|
it('should open tab in background by background:true', async () => { |
|
|
|
await body.sendKeys(Key.Control, 'f'); |
|
|
|
await body.sendKeys(Key.Control, 'f'); |
|
|
@ -139,8 +141,10 @@ describe('follow properties test', () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
await body.sendKeys('jj'); |
|
|
|
await body.sendKeys('jj'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await eventually(async() => { |
|
|
|
let tabs = await browser.tabs.query({}); |
|
|
|
let tabs = await browser.tabs.query({}); |
|
|
|
assert.equal(tabs[0].active, true); |
|
|
|
assert.equal(tabs[0].active, true); |
|
|
|
assert.equal(tabs[1].active, false); |
|
|
|
assert.equal(tabs[1].active, false); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|