diff options
Diffstat (limited to 'e2e/contents')
-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') |