Skip to content

Commit

Permalink
Fix: Invalid import statement for deprecated in the modal component (#…
Browse files Browse the repository at this point in the history
…17969)

* Fix: Invalid import statement for deprecated in the modal component

* Font Size Picker: Update E2E test to work with new Core changes.
  • Loading branch information
gziolo authored and hypest committed Nov 4, 2019
1 parent e5ecca5 commit 7a2298b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/modal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { Component, createPortal } from '@wordpress/element';
import { withInstanceId } from '@wordpress/compose';
import { deprecated } from '@wordpress/deprecated';
import deprecated from '@wordpress/deprecated';

/**
* Internal dependencies
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/specs/font-size-picker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ describe( 'Font Size Picker', () => {

// Clear the custom font size input.
await page.click( '.blocks-font-size .components-range-control__number' );
await pressKeyTimes( 'ArrowRight', 4 );
await pressKeyTimes( 'Backspace', 4 );
await pressKeyTimes( 'ArrowRight', 5 );
await pressKeyTimes( 'Backspace', 5 );

// Ensure content matches snapshot.
const content = await getEditedPostContent();
Expand Down

0 comments on commit 7a2298b

Please sign in to comment.