debian-image-builder-frontend/src/test/Components
lucasgarfield e649e5c385 CreateImageWizard: Override Data Driven Form Enter behavior
Resolves #466. The default behavior for the DDF Wizard is to either advance to
the next step or submit the form when the ENTER is pressed.

This is inappropriate for complex forms that contain many different
types of elements that are typically interacted with using ENTER. For
instance, the default behavior when a link is focused and ENTER is pressed
is not to open the link in a browser but to advance or submit the form.

This commit overrides the default behavior by passing an onKeyDown prop
to the wizard which calls a custom onKeyDown function. The new custom
function does not define any behavior for when ENTER is pressed,
but does recreate DDF's default ESCAPE behavior, which is to close the
modal.
2022-03-25 15:47:48 +01:00
..
CreateImageWizard CreateImageWizard: Override Data Driven Form Enter behavior 2022-03-25 15:47:48 +01:00
ImagesTable test: able to recreate image 2022-03-23 12:30:42 +01:00
LandingPage test: fix testing-library/no-render-in-setup error 2022-01-05 11:51:55 -05:00