use TextControl instead of PlainText (https://github.com/woocommerce/woocommerce-blocks/pull/3014)
* use TextControl instead of PlainText * update e2e test * revert changes for label * update test
This commit is contained in:
parent
c0dbb08ef9
commit
69ff731b4e
|
@ -5,7 +5,7 @@ import { __ } from '@wordpress/i18n';
|
|||
import classnames from 'classnames';
|
||||
import PropTypes from 'prop-types';
|
||||
import { InspectorControls, PlainText } from '@wordpress/block-editor';
|
||||
import { PanelBody, ToggleControl } from '@wordpress/components';
|
||||
import { PanelBody, ToggleControl, TextControl } from '@wordpress/components';
|
||||
import { withInstanceId } from '@wordpress/compose';
|
||||
|
||||
/**
|
||||
|
@ -75,7 +75,7 @@ const Edit = ( {
|
|||
/>
|
||||
) }
|
||||
<div className="wc-block-product-search__fields">
|
||||
<PlainText
|
||||
<TextControl
|
||||
className="wc-block-product-search__field input-control"
|
||||
value={ placeholder }
|
||||
onChange={ ( value ) =>
|
||||
|
|
|
@ -50,7 +50,7 @@ describe( `${ block.name } Block`, () => {
|
|||
);
|
||||
|
||||
await expect( page ).toFill(
|
||||
'textarea.wc-block-product-search__field',
|
||||
'.wc-block-product-search__field input',
|
||||
'I am a new placeholder'
|
||||
);
|
||||
|
||||
|
@ -59,7 +59,7 @@ describe( `${ block.name } Block`, () => {
|
|||
'The Label'
|
||||
);
|
||||
await clearAndFillInput(
|
||||
'textarea.wc-block-product-search__field',
|
||||
'.wc-block-product-search__field input',
|
||||
'The Placeholder'
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue