import React from "react";
import renderer from "react-test-renderer";
import TextField from "../TextField";
describe("TextField renders correctly", () => {
it("with placeholder", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with value", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("when disabled", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with wrapperClassName", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with className", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with id", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with validation", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with showCharCount", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("when loading", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with another type", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with large size", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with icon", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with labelIconName", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("when readonly", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with className", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with role", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("when required", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with secondaryIconName", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with iconsNames", () => {
const tree = renderer
.create()
.toJSON();
expect(tree).toMatchSnapshot();
});
it("with date type", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with date-time type", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with tel type", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with url type", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
it("with email type", () => {
const tree = renderer.create().toJSON();
expect(tree).toMatchSnapshot();
});
});