import React from "react";
import renderer from "react-test-renderer";
import SplitButton from "../SplitButton";
import Delete from "../../Icon/Icons/components/Delete";
import SplitButtonMenu from "../SplitButtonMenu/SplitButtonMenu";
import MenuItem from "../../Menu/MenuItem/MenuItem";
import Menu from "../../Menu/Menu/Menu";
const secondaryContentText = "Test secondary dialog content";
const secondaryContent =
{secondaryContentText}
;
const SplitButtonMenuWithItems = (
);
const CustomMenuWithItems = (
);
describe("SplitButton renders correctly", () => {
it("with only required props", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with disabled", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with tertiary button", () => {
const tree = renderer
.create()
.toJSON();
expect(tree).toMatchSnapshot();
});
it("with medium dialog padding size", () => {
const tree = renderer
.create(
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it("with secondary position", () => {
const tree = renderer
.create(
)
.toJSON();
expect(tree).toMatchSnapshot();
});
it("with zIndex", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with left icon", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with right icon", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with SplitButtonMenu", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with custom menu", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
});