ansible-ui icon indicating copy to clipboard operation
ansible-ui copied to clipboard

Credential sub form tests

Open AlexSCorey opened this issue 1 year ago • 1 comments

This brings in tests for the credential sub form. The tests simply confirm the existence of the necessary fields, and whether those fields are required.

AlexSCorey avatar May 15 '24 16:05 AlexSCorey

These tests look good. I wonder if it makes sense, since the subform is rendered dynamically based on the credential type selected in the main form, to have the tests assert the correct behavior is happening, vs using hard-coded values. For example, selecting Machine from the dropdown should render all fields as returned by the mock payload (inputs.fields) for credential_type === machine.

kialam avatar May 15 '24 20:05 kialam