Tester for custom renderer dropdown

Hi, I am having a hard time trying to build a tester for a custom render.

Auto generated UISchema

I tried this but it doesn’t seem to be the right way. Any suggestions?
I dont get any errors and the UI simply returns a sting input field

export default rankWith(
   3,
   and(schemaTypeIs('string'), schemaMatches(schema => schema.hasOwnProperty('enum')))
);

my schema looks like this

...,
status: {
   description: "Case status"
   enum: ['CLOSED', 'REOPEN']
   example: "REOPEN"
   type: "string"
}

Hi @JustKyle,

your tester looks fine. Can you also show the renderer code and how you register the renderer?

Hi Stefan, turns out was it was just the ranking that was causing it to not render, increasing it from 3 to 10 solved the issue.

1 Like