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

View File

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