diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-18 21:34:59 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-18 21:34:59 +0900 |
commit | 08d198eb3062cd263f799837208eacf5139f0d47 (patch) | |
tree | 5a31a003f80f7c2c212cdd106066e70530ec8abb /e2e | |
parent | cbd8f5b9288c7ec84fc77a3d1a30a4d018cf05f0 (diff) |
add zp test
Diffstat (limited to 'e2e')
-rw-r--r-- | e2e/contents/tab.test.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/e2e/contents/tab.test.js b/e2e/contents/tab.test.js index 852c6d9..56d1f21 100644 --- a/e2e/contents/tab.test.js +++ b/e2e/contents/tab.test.js @@ -52,6 +52,24 @@ describe("tab test", () => { }); }) + it('makes pinned by zd', () => { + let before; + let targetTab; + return tabs.create(targetWindow.id, SERVER_URL).then((tab) => { + targetTab = tab; + return windows.get(targetWindow.id) + }).then((win) => {; + before = win; + return keys.press(targetTab.id, 'z'); + }).then(() => { + return keys.press(targetTab.id, 'p'); + }).then(() => { + return windows.get(targetWindow.id); + }).then((actual) => { + expect(actual.tabs[0].pinned).to.be.true; + }); + }) + it('selects previous tab by K', () => { return Promise.resolve().then(() => { return tabs.create(targetWindow.id, SERVER_URL + '#1') |