Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Stabilized the BlockToolbar test so it no longer depends on th…
Browse files Browse the repository at this point in the history
…e focus of the browser.
  • Loading branch information
oleq committed Oct 5, 2018
1 parent 1fa84e9 commit 0567fb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/toolbar/block/blocktoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ describe( 'BlockToolbar', () => {
} );

it( 'should hide the panel on toolbar blur', () => {
blockToolbar.toolbarView.focusTracker.isFocused = true;

blockToolbar.buttonView.fire( 'execute' );

expect( blockToolbar.panelView.isVisible ).to.be.true;
Expand Down

0 comments on commit 0567fb1

Please sign in to comment.