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
Remove no longer necessary test.
  • Loading branch information
afercia committed Jul 1, 2024
commit 6e1a9e19be6a9ad38a54b678e4cd40bc3e5be099
32 changes: 0 additions & 32 deletions test/e2e/specs/editor/various/is-typing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,36 +36,4 @@ test.describe( 'isTyping', () => {
// Toolbar Popover is hidden again
await expect( blockToolbarPopover ).toBeHidden();
} );

test( 'should not close the dropdown when typing in it', async ( {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ellatrix do you think we should update this test to something like typing in the link dialog or something instead of removing it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test should be kept for sure now, that you have reverted the Query Loop changes..

editor,
page,
} ) => {
// Add a block with a dropdown in the toolbar that contains an input.
await editor.insertBlock( { name: 'core/query' } );

await editor.canvas
.getByRole( 'document', { name: 'Block: Query Loop' } )
.getByRole( 'button', { name: 'Start blank' } )
.click();

await editor.canvas
.getByRole( 'button', { name: 'Title & Date' } )
.click();

// Moving the mouse shows the toolbar.
await editor.showBlockToolbar();
// Open the dropdown.
const displaySettings = page.getByRole( 'button', {
name: 'Display settings',
} );
await displaySettings.click();
const itemsPerPageInput = page.getByLabel( 'Items per Page' );
// Make sure we're where we think we are
await expect( itemsPerPageInput ).toBeFocused();
// Type inside the dropdown's input
await page.keyboard.type( '00' );
// The input should still be visible.
await expect( itemsPerPageInput ).toBeVisible();
} );
} );