From ba0ca311715342131b214d6ee6c89629429d20cf Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Fri, 30 Jun 2017 10:28:33 +0200 Subject: [PATCH] Fixes close tabs to the left/right when you have multiple tab pages Resolves #9789 Auditors: @bsclifton Test Plan: --- test/tab-components/tabPagesTest.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/tab-components/tabPagesTest.js b/test/tab-components/tabPagesTest.js index 2221b959d35..5af7111bf58 100644 --- a/test/tab-components/tabPagesTest.js +++ b/test/tab-components/tabPagesTest.js @@ -3,6 +3,7 @@ const Brave = require('../lib/brave') const appConfig = require('../../js/constants/appConfig') const settings = require('../../js/constants/settings') +const messages = require('../../js/constants/messages') const { urlInput, newFrameButton, @@ -67,6 +68,15 @@ describe('tab pages', function () { .waitForElementCount(tabsTabs, numTabsPerPage) }) + it('closing tabs with close-to-left option', function * () { + yield this.app.client + .click(newFrameButton) + .waitForElementCount(tabPage, 2) + .ipcSend(messages.SHORTCUT_CLOSE_OTHER_FRAMES, 21, false, true) + .waitForElementCount(tabPage, 0) + .waitForElementCount(tabsTabs, 1) + }) + describe('allows changing to tab pages', function () { beforeEach(function * () { // Make sure there are 2 tab pages