add selectors for cypress tests

This commit is contained in:
John Mitchell 2020-08-04 17:21:23 -04:00 committed by John Mitchell
parent 0876b944ed
commit 5b362ef162
2 changed files with 4 additions and 0 deletions

View File

@ -82,6 +82,7 @@ function AdvancedSearch({
<AdvancedGroup>
<Select
aria-label={i18n._(t`Set type select`)}
className="setTypeSelect"
variant={SelectVariant.typeahead}
typeAheadAriaLabel={i18n._(t`Set type typeahead`)}
onToggle={setIsPrefixDropdownOpen}
@ -123,6 +124,7 @@ function AdvancedSearch({
</Select>
<Select
aria-label={i18n._(t`Key select`)}
className="keySelect"
variant={SelectVariant.typeahead}
typeAheadAriaLabel={i18n._(t`Key typeahead`)}
onToggle={setIsKeyDropdownOpen}
@ -143,6 +145,7 @@ function AdvancedSearch({
</Select>
<Select
aria-label={i18n._(t`Lookup select`)}
className="lookupSelect"
variant={SelectVariant.typeahead}
typeAheadAriaLabel={i18n._(t`Lookup typeahead`)}
onToggle={setIsLookupDropdownOpen}

View File

@ -157,6 +157,7 @@ function Search({
{searchOptions.length > 0 ? (
<Select
variant={SelectVariant.single}
className="simpleKeySelect"
aria-label={i18n._(t`Simple key select`)}
onToggle={setIsSearchDropdownOpen}
onSelect={handleDropdownSelect}