Skip to content

Commit

Permalink
Fixes close tabs to the left/right
Browse files Browse the repository at this point in the history
when you have multiple tab pages

Resolves brave#9789

Auditors: @bsclifton

Test Plan:
  • Loading branch information
NejcZdovc committed Jun 30, 2017
1 parent 5114cc3 commit ba0ca31
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/tab-components/tabPagesTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ba0ca31

Please sign in to comment.