Skip to content

Commit

Permalink
Update e2e test with UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Jan 13, 2021
1 parent 7281632 commit c675476
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/src/inserter.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export async function insertBlockDirectoryBlock( searchTerm ) {

// Grab the first block in the list
const insertButton = await page.waitForSelector(
'.block-directory-downloadable-blocks-list li:first-child button'
'.block-directory-downloadable-blocks-list div:first-child button'
);
await insertButton.click();
// We should wait until the inserter closes and the focus moves to the content.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ describe( 'adding blocks from block directory', () => {
document.querySelector( '.block-editor-inserter__main-area' )
.innerHTML
);
expect( selectorContent ).toContain( 'has-no-results' );
expect( selectorContent ).toContain(
'block-editor-inserter__no-results'
);
} );

it( 'Should be able to add (the first) block.', async () => {
Expand Down

0 comments on commit c675476

Please sign in to comment.