diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-27 19:46:37 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-05-27 19:46:37 +0900 |
commit | 3686bbbabf985c41bc972de5e3897ddd2ea77333 (patch) | |
tree | 232f25a01457b7ae88fa1028492a6e3fd30178ff /e2e | |
parent | ff85797ffcce6dffe9a36ec14e1d1efbba1c1e5b (diff) |
Fix test case
Diffstat (limited to 'e2e')
-rw-r--r-- | e2e/follow_properties.test.js | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/e2e/follow_properties.test.js b/e2e/follow_properties.test.js index b38216e..223923e 100644 --- a/e2e/follow_properties.test.js +++ b/e2e/follow_properties.test.js @@ -118,6 +118,36 @@ describe('follow properties test', () => { }); }); + it('should open tab in background by background:false', async () => { + await body.sendKeys(Key.Shift, 'f'); + await eventually(async() => { + let hints = await session.findElementsByCSS('.vimvixen-hint'); + assert.equal(hints.length, 5); + }); + await body.sendKeys('jj'); + + 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 () => { + await body.sendKeys(Key.Control, 'f'); + await eventually(async() => { + let hints = await session.findElementsByCSS('.vimvixen-hint'); + assert.equal(hints.length, 5); + }); + await body.sendKeys('jj'); + + await eventually(async() => { + let tabs = await browser.tabs.query({}); + assert.equal(tabs[0].active, true); + assert.equal(tabs[1].active, false); + }); + }); + it('should show hints with hintchars by settings', async () => { let c = new Console(session); @@ -149,34 +179,4 @@ describe('follow properties test', () => { assert.equal(await hints[4].getStyle('display'), 'block'); }); }); - - it('should open tab in background by background:false', async () => { - await body.sendKeys(Key.Shift, 'f'); - await eventually(async() => { - let hints = await session.findElementsByCSS('.vimvixen-hint'); - assert.equal(hints.length, 5); - }); - await body.sendKeys('jj'); - - 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 () => { - await body.sendKeys(Key.Control, 'f'); - await eventually(async() => { - let hints = await session.findElementsByCSS('.vimvixen-hint'); - assert.equal(hints.length, 5); - }); - await body.sendKeys('jj'); - - await eventually(async() => { - let tabs = await browser.tabs.query({}); - assert.equal(tabs[0].active, true); - assert.equal(tabs[1].active, false); - }); - }); }); |