diff --git a/QA.md b/QA.md index ef1ecb4..46b4c01 100644 --- a/QA.md +++ b/QA.md @@ -21,7 +21,6 @@ The behaviors of the console are tested in [Console section](#consoles). #### Tabs -- [ ] u: reopen close tab - [ ] r: reload current tab - [ ] R: reload current tab without cache diff --git a/e2e/contents/tab.test.js b/e2e/contents/tab.test.js index 550d79a..72479b9 100644 --- a/e2e/contents/tab.test.js +++ b/e2e/contents/tab.test.js @@ -212,6 +212,23 @@ describe("tab test", () => { }); }); + it('reopen tab by u', () => { + return Promise.resolve().then(() => { + return tabs.create(targetWindow.id, CLIENT_URL + '#1'); + }).then((tab) => { + return keys.press(tab.id, 'd'); + }).then(() => { + return windows.get(targetWindow.id); + }).then((win) => { + expect(win.tabs).to.have.lengthOf(1); + return keys.press(win.tabs[0].id, 'u'); + }).then(() => { + return windows.get(targetWindow.id); + }).then((win) => { + expect(win.tabs).to.have.lengthOf(2); + }); + }); + it('does not delete pinned tab by d', () => { return Promise.resolve().then(() => { return tabs.create(targetWindow.id, CLIENT_URL + '#1');