Skip to content

Instantly share code, notes, and snippets.

@tidusia
Created October 29, 2020 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tidusia/a0166299870977e971e0e2abb0eb65ef to your computer and use it in GitHub Desktop.
Save tidusia/a0166299870977e971e0e2abb0eb65ef to your computer and use it in GitHub Desktop.
test("should render an empty firstname input", () => {
const props = Default.args as Props;
const { getByLabelText } = render(<Default {...props} />);
const input = getByLabelText("Firstname") as HTMLInputElement;
expect(input).toBeInTheDocument();
expect(input.value).toBe("");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment