aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-13 15:38:26 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-13 15:38:26 +0900
commita6c0eb06e9bdb8df32ae1ef8c7bae0adf076ba1f (patch)
tree6c5faf6d02a56bd9b6704fc52809d6c658ab5ff2
parent1017cefae4beb38bfcbd90f49300cbf3e86e34ea (diff)
Add e2e test cases for u
-rw-r--r--QA.md1
-rw-r--r--e2e/contents/tab.test.js17
2 files changed, 17 insertions, 1 deletions
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
-- [ ] <kbd>u</kbd>: reopen close tab
- [ ] <kbd>r</kbd>: reload current tab
- [ ] <kbd>R</kbd>: 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');