aboutsummaryrefslogtreecommitdiff
path: root/e2e/contents/tab.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'e2e/contents/tab.test.js')
-rw-r--r--e2e/contents/tab.test.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/e2e/contents/tab.test.js b/e2e/contents/tab.test.js
index 56d1f21..be4288f 100644
--- a/e2e/contents/tab.test.js
+++ b/e2e/contents/tab.test.js
@@ -182,6 +182,26 @@ describe("tab test", () => {
});
});
+ it('selects last selected tab by <C-6>', () => {
+ return Promise.resolve().then(() => {
+ return tabs.create(targetWindow.id, SERVER_URL + '#1')
+ }).then(() => {
+ return tabs.create(targetWindow.id, SERVER_URL + '#2')
+ }).then(() => {
+ return tabs.create(targetWindow.id, SERVER_URL + '#3');
+ }).then(() => {
+ return tabs.selectAt(targetWindow.id, 1);
+ }).then(() => {
+ return tabs.selectAt(targetWindow.id, 3);
+ }).then((tab) => {
+ return keys.press(tab.id, '6', { ctrlKey: true });
+ }).then(() => {
+ return windows.get(targetWindow.id);
+ }).then((win) => {
+ expect(win.tabs[1].active).to.be.true;
+ });
+ });
+
it('deletes tab by d', () => {
return Promise.resolve().then(() => {
return tabs.create(targetWindow.id, SERVER_URL + '#1');