Skip to content

Commit

Permalink
Revert "Update tests to expect warning"
Browse files Browse the repository at this point in the history
This reverts commit 1f6fa73b93320c64671ad739a77116253a0b33fe.
  • Loading branch information
brookewp committed Sep 13, 2023
1 parent 5b3a9e6 commit 727ddaa
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ describe( 'DownloadableBlockListItem', () => {
render(
<DownloadableBlockListItem onClick={ jest.fn() } item={ plugin } />
);

expect( console ).toHaveWarnedWith(
'`position` prop in wp.components.tooltip is deprecated since version 6.4. Please use `placement` prop instead.'
);
const author = screen.queryByText( `by ${ plugin.author }` );
const description = screen.queryByText( plugin.description );
expect( author ).toBeInTheDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ describe( 'DownloadableBlocksList', () => {
);
const downloadableBlocks = screen.getAllByRole( 'option' );

expect( console ).toHaveWarnedWith(
'`position` prop in wp.components.tooltip is deprecated since version 6.4. Please use `placement` prop instead.'
);
expect( downloadableBlocks ).toHaveLength( items.length );
} );
} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ describe( 'General media replace flow', () => {
name: 'Replace',
} )
);

expect( console ).toHaveWarnedWith(
'`position` prop in wp.components.tooltip is deprecated since version 6.4. Please use `placement` prop instead.'
);

const uploadMenu = screen.getByRole( 'menu' );

await waitFor( () => expect( uploadMenu ).toBePositionedPopover() );
Expand Down
4 changes: 0 additions & 4 deletions packages/block-library/src/cover/test/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ describe( 'Cover block', () => {
test( 'shows placeholder if background image and color not set', async () => {
await setup();

expect( console ).toHaveWarnedWith(
'`position` prop in wp.components.tooltip is deprecated since version 6.4. Please use `placement` prop instead.'
);

expect(
screen.getByRole( 'group', {
name: 'To edit this block, you need permission to upload media.',
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/box-control/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,6 @@ describe( 'BoxControl', () => {
'100'
);

expect( console ).toHaveWarnedWith(
'`position` prop in wp.components.tooltip is deprecated since version 6.4. Please use `placement` prop instead.'
);

expect(
screen.getByRole( 'textbox', { name: 'Top' } )
).toHaveValue( '100' );
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/date-time/time/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ describe( 'TimePicker', () => {
/>
);

expect( console ).toHaveWarnedWith(
'`position` prop in wp.components.tooltip is deprecated since version 6.4. Please use `placement` prop instead.'
);

const monthInput = screen.getByLabelText( 'Month' );
const dayInput = screen.getByLabelText( 'Day' );
const yearInput = screen.getByLabelText( 'Year' );
Expand Down

0 comments on commit 727ddaa

Please sign in to comment.