aboutsummaryrefslogtreecommitdiff
path: root/e2e/follow_properties.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'e2e/follow_properties.test.js')
-rw-r--r--e2e/follow_properties.test.js60
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);
- });
- });
});