diff --git a/airbyte-webapp/src/components/CreateConnection/CreateConnectionForm.test.tsx b/airbyte-webapp/src/components/CreateConnection/CreateConnectionForm.test.tsx index b55dde8ab39f..7be178b5a9ff 100644 --- a/airbyte-webapp/src/components/CreateConnection/CreateConnectionForm.test.tsx +++ b/airbyte-webapp/src/components/CreateConnection/CreateConnectionForm.test.tsx @@ -44,7 +44,7 @@ describe("CreateConnectionForm", () => { it("should render", async () => { jest.spyOn(sourceHook, "useDiscoverSchema").mockImplementationOnce(() => baseUseDiscoverSchema); const renderResult = await render(); - expect(renderResult.container).toMatchSnapshot(); + expect(renderResult).toMatchSnapshot(); expect(renderResult.queryByText("Please wait a little bit more…")).toBeFalsy(); }); @@ -54,7 +54,7 @@ describe("CreateConnectionForm", () => { .mockImplementationOnce(() => ({ ...baseUseDiscoverSchema, isLoading: true })); const renderResult = await render(); - expect(renderResult.container).toMatchSnapshot(); + expect(renderResult).toMatchSnapshot(); }); it("should render with an error", async () => { @@ -64,6 +64,6 @@ describe("CreateConnectionForm", () => { })); const renderResult = await render(); - expect(renderResult.container).toMatchSnapshot(); + expect(renderResult).toMatchSnapshot(); }); }); diff --git a/airbyte-webapp/src/components/CreateConnection/__snapshots__/CreateConnectionForm.test.tsx.snap b/airbyte-webapp/src/components/CreateConnection/__snapshots__/CreateConnectionForm.test.tsx.snap index f32652563982..4bd204d77b07 100644 --- a/airbyte-webapp/src/components/CreateConnection/__snapshots__/CreateConnectionForm.test.tsx.snap +++ b/airbyte-webapp/src/components/CreateConnection/__snapshots__/CreateConnectionForm.test.tsx.snap @@ -1,184 +1,61 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`CreateConnectionForm should render 1`] = ` -