Merge pull request #710 from mfrances17/mapper-typeahead

Use typeahead for mapper list
This commit is contained in:
mfrances17 2021-06-17 08:36:57 -04:00 committed by GitHub
commit bb1b48e4c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -221,7 +221,7 @@ export default class ProviderPage {
cy.wait(1000); cy.wait(1000);
cy.get("#kc-providerId").click(); cy.get("#kc-providerId").click();
cy.get("#kc-providerId + ul").contains(mapperType).click(); cy.get("button").contains(mapperType).click();
cy.get(`[data-testid="ldap-mapper-name"]`).type(`${mapperType}-test`); cy.get(`[data-testid="ldap-mapper-name"]`).type(`${mapperType}-test`);

View file

@ -223,7 +223,7 @@ export const LdapMapperDetails = () => {
> >
<Controller <Controller
name="providerId" name="providerId"
defaultValue=" " defaultValue=""
control={form.control} control={form.control}
data-testid="ldap-mapper-type-select" data-testid="ldap-mapper-type-select"
render={({ onChange, value }) => ( render={({ onChange, value }) => (
@ -239,7 +239,7 @@ export const LdapMapperDetails = () => {
setIsMapperDropdownOpen(false); setIsMapperDropdownOpen(false);
}} }}
selections={value} selections={value}
variant={SelectVariant.single} variant={SelectVariant.typeahead}
> >
<SelectOption <SelectOption
key={0} key={0}