add zp test
This commit is contained in:
parent
cbd8f5b928
commit
08d198eb30
1 changed files with 18 additions and 0 deletions
|
@ -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')
|
||||||
|
|
Reference in a new issue