aboutsummaryrefslogtreecommitdiff
path: root/e2e/contents/tab.test.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-02-04 16:04:50 +0900
committerGitHub <noreply@github.com>2019-02-04 16:04:50 +0900
commit7c99569b0c21869d5e98a3ddcc6166d4a2963252 (patch)
tree9059b4e96ac8174e75ac0a2300bff241dc14a6d8 /e2e/contents/tab.test.js
parentc404bbba220179f0323d57d2349f2b0648f58da0 (diff)
parente911d2772c3c8620c0d6207165f1000256a1ae5c (diff)
Merge pull request #533 from ueokande/qa-0.20
QA 0.20
Diffstat (limited to 'e2e/contents/tab.test.js')
-rw-r--r--e2e/contents/tab.test.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/e2e/contents/tab.test.js b/e2e/contents/tab.test.js
index bfc22ea..3c98dc9 100644
--- a/e2e/contents/tab.test.js
+++ b/e2e/contents/tab.test.js
@@ -23,6 +23,19 @@ describe("tab test", () => {
expect(actual.tabs).to.have.lengthOf(before.tabs.length - 1);
});
+ it('deletes tabs to the right by D', async () => {
+ let tab1 = await tabs.create(targetWindow.id, CLIENT_URL + '#1');
+ await tabs.create(targetWindow.id, CLIENT_URL + '#2');
+ await tabs.create(targetWindow.id, CLIENT_URL + '#3');
+
+ let before = await windows.get(targetWindow.id)
+ let tab = await tabs.selectAt(targetWindow.id, tab1.index)
+ await keys.press(tab.id, 'D', { shiftKey: true });
+
+ let actual = await windows.get(targetWindow.id);
+ expect(actual.tabs).to.have.lengthOf(before.tabs.length - 2);
+ });
+
it('duplicates tab by zd', async () => {
let tab = await tabs.create(targetWindow.id, CLIENT_URL);
let before = await windows.get(targetWindow.id)