diff --git a/plugins/scaffolder/src/next/Router/Router.test.tsx b/plugins/scaffolder/src/next/Router/Router.test.tsx
index 0e890005ac..fb2072c1a0 100644
--- a/plugins/scaffolder/src/next/Router/Router.test.tsx
+++ b/plugins/scaffolder/src/next/Router/Router.test.tsx
@@ -54,11 +54,11 @@ describe('Router', () => {
expect(TemplateWizardPage).toHaveBeenCalled();
});
- it('should pass through the transformErrors property', async () => {
+ it('should pass through the FormProps property', async () => {
const transformErrorsMock = jest.fn();
await renderInTestApp(
- ,
+ ,
{
routeEntries: ['/templates/default/foo'],
},
@@ -68,13 +68,14 @@ describe('Router', () => {
const [
{
- FormProps: { transformErrors },
+ FormProps,
},
] = mock.mock.calls[0];
- expect(transformErrors).toEqual(transformErrors);
+ expect(FormProps).toEqual({transformErrors: transformErrorsMock, noHtml5Validate: true});
});
+
it('should extract the fieldExtensions and pass them through', async () => {
const mockComponent = () => null;
const CustomFieldExtension = scaffolderPlugin.provide(