Skip to content

Commit

Permalink
Merge branch 'develop' into bottom-sheet-workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak committed Jan 30, 2020
2 parents 28baac6 + 28f7f7e commit 11120a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.22.0
------
* Make inserter to show options on long-press to add before/after

1.21.0
------
* Reduced padding around text on Rich Text based blocks.
Expand Down
5 changes: 5 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ describe( 'RootComponent', () => {
it( 'renders without crashing with a block focused', () => {
const app = renderer.create( <RootComponent /> );
renderer.act( () => {
// jest.runAllTicks needs to be in it's own "act"
// we need to wait for all tasks to be done before dispatching an action
// otherwise the store may not be ready
jest.runAllTicks();
} );
renderer.act( () => {
const blocks = select( 'core/block-editor' ).getBlocks();
// Methods that modify state are required to be called inside `act`
dispatch( 'core/block-editor' ).selectBlock( blocks[ 0 ].clientId );
Expand Down

0 comments on commit 11120a8

Please sign in to comment.