无法在作为react组件的“类型搜索下拉菜单”中输入文本。我可以单击该组件,但无法在其中键入任何文本。下面是示例代码。
import { Selector } from 'testcafe';
test('Select option', async t => {
const dropdown = Selector('.section')
.find('.Select.is-clearable.is-searchable.Select--multi')
.find('.Select-control')
.find('.Select-placeholder')
.withText('Select...');
await t.click(dropdown);
await t.typeText(dropdown, 'abc'); // unable to pass text 'abc'
await t.wait(3000);
});
使用类似组件的示例站点http://jedwatson.github.io/react-select/