Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Jan 22, 2021
1 parent eeed53e commit b4ce14c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe( 'DownloadableBlockListItem', () => {
expect( description ).not.toBeNull();
} );

it( 'should show a spinner when installing the block', () => {
it( 'should show installing status when installing the block', () => {
useSelect.mockImplementation( () => ( {
isInstalling: true,
isInstallable: true,
Expand All @@ -45,8 +45,8 @@ describe( 'DownloadableBlockListItem', () => {
const { queryByText } = render(
<DownloadableBlockListItem onClick={ jest.fn() } item={ plugin } />
);
const spinner = queryByText( `Installing ${ plugin.title }` );
expect( spinner ).not.toBeNull();
const statusLabel = queryByText( 'Installing…' );
expect( statusLabel ).not.toBeNull();
} );

it( "should be disabled when a plugin can't be installed", () => {
Expand Down
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 div:first-child button'
'.block-directory-downloadable-blocks-list button:first-child'
);
await insertButton.click();
// We should wait until the inserter closes and the focus moves to the content.
Expand Down

0 comments on commit b4ce14c

Please sign in to comment.