Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: Fix hidden block setting button
Swap the Image block for the Shortcode block for the subject of a block
with no settings now that anchor support is present for an empty Image
block.
  • Loading branch information
dcalhoun committed Mar 14, 2024
commit 719687a267cb08b28c77c6bf24f50b3d66485610
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@ describe( 'Block Toolbar', () => {
it( "doesn't render the block settings button if there aren't any settings for the current selected block", async () => {
// Arrange
const screen = await initializeEditor();
await addBlock( screen, 'Image' );

// Act
fireEvent(
screen.getByTestId( 'media-options-picker' ),
'backdropPress'
);
await addBlock( screen, 'Shortcode' );

// Assert
expect( screen.queryByLabelText( 'Open Settings' ) ).toBeNull();
Expand Down