add zp test

jh-changes
Shin'ya Ueoka 7 years ago
parent cbd8f5b928
commit 08d198eb30
  1. 18
      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', () => { it('selects previous tab by K', () => {
return Promise.resolve().then(() => { return Promise.resolve().then(() => {
return tabs.create(targetWindow.id, SERVER_URL + '#1') return tabs.create(targetWindow.id, SERVER_URL + '#1')