First pass at some integration tests

This commit is contained in:
Tom Southall
2022-02-19 22:20:39 +00:00
parent ec8a714f73
commit 9484556d65
9 changed files with 1677 additions and 1213 deletions

View File

@@ -39,12 +39,14 @@ export default function Container(props) {
itemGroupsAreImmutable,
maxItems,
minQueryLength,
name,
noItemsMessage,
onChange,
onSelect,
onEnter,
onTab,
placeholder
placeholder,
tabIndex
} = props
// Destructure itemGroups prop
@@ -196,6 +198,7 @@ export default function Container(props) {
aria-haspopup='listbox'>
<input
id={id}
name={name}
className={customStyles.query}
style={defaultStyles.query}
disabled={isDisabled}
@@ -205,7 +208,7 @@ export default function Container(props) {
autoCorrect='off'
autoCapitalize='off'
spellCheck='false'
tabIndex='1'
tabIndex={tabIndex}
ref={queryInput}
onKeyDown={checkKey}
onInput={handleInput}