Skip to content

Commit

Permalink
Mobile - Tests - initializes the editor: With inner blocks we need to…
Browse files Browse the repository at this point in the history
… get the first element which is the main list
  • Loading branch information
Gerardo committed Apr 26, 2022
1 parent 2b9b1e3 commit dfc061b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-native-editor/src/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ describe( 'Register Gutenberg', () => {
{},
{ component: EditorComponent }
);
const blockList = screen.getByTestId( 'block-list-wrapper' );
// Inner blocks create BlockLists so let's take into account selecting the main one
const blockList = screen.getAllByTestId( 'block-list-wrapper' )[ 0 ];

expect( blockList ).toBeVisible();
expect( console ).toHaveLoggedWith( 'Hermes is: true' );
Expand Down

0 comments on commit dfc061b

Please sign in to comment.