diff --git a/src/Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel.test.tsx b/src/Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel.test.tsx new file mode 100644 index 000000000..539e750aa --- /dev/null +++ b/src/Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel.test.tsx @@ -0,0 +1,23 @@ +import { shallow } from "enzyme"; +import Explorer from "Explorer/Explorer"; +import { AddMaterializedViewPanel, AddMaterializedViewPanelProps } from "Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel"; +import React from "react"; + +const props: AddMaterializedViewPanelProps = { + explorer: new Explorer(), + sourceContainer: new Collection() +}; + +describe("AddMaterializedViewPanel", () => { + const wrapper = shallow(); + + it("Render default properly", () => { + expect(wrapper).toMatchSnapshot(); + }); + + it("should render form", () => { + + const form = wrapper.find("form").first(); + expect(form).toBeDefined(); + }); +}); \ No newline at end of file diff --git a/src/Explorer/Panes/AddMaterializedViewPanel/__snapshots__/AddMaterializedViewPanel.test.tsx.snap b/src/Explorer/Panes/AddMaterializedViewPanel/__snapshots__/AddMaterializedViewPanel.test.tsx.snap new file mode 100644 index 000000000..cf095f354 --- /dev/null +++ b/src/Explorer/Panes/AddMaterializedViewPanel/__snapshots__/AddMaterializedViewPanel.test.tsx.snap @@ -0,0 +1,379 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`AddMaterializedViewPanel Render default properly 1`] = ` +
+
+ + + + *  + + + Source container id + + + + + + + *  + + + View container id + + + + + + *  + + + Materialized View Definition + + + Learn more about defining materialized views. + + } + directionalHint={4} + > + + + + + + + + + + +
+ + +`; + +exports[`AddMaterializedViewpanel should render Default properly 1`] = ` +
+
+ + + + *  + + + Source container id + + + + + + + *  + + + View container id + + + + + + *  + + + Materialized View Definition + + + Learn more about defining materialized views. + + } + directionalHint={4} + > + + + + + + + + + + +
+ + +`;