Skip to content

Commit

Permalink
Testing adding snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
awaisdar001 committed Nov 2, 2020
1 parent 2b7bfd0 commit b8d4759
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
51 changes: 51 additions & 0 deletions src/users/__snapshots__/UserPage.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`User Page Renders Correctly 1`] = `
<main
className="container-fluid mt-3 mb-5"
>
<section
className="mb-3"
>
<a
href="/"
onClick={[Function]}
>
&lt; Back to Tools
</a>
</section>
<section
className="mb-3"
>
<form
className="form-inline"
>
<label
htmlFor="userIdentifier"
>
Username or Email
</label>
<input
className="form-control flex-grow-1 mr-1"
defaultValue=""
name="userIdentifier"
type="text"
/>
<button
className="btn btn-primary"
onBlur={[Function]}
onClick={[Function]}
onKeyDown={[Function]}
type="submit"
>
Search
</button>
</form>
</section>
<section>
<p>
Please search for a username or email.
</p>
</section>
</main>
`;
32 changes: 32 additions & 0 deletions src/users/__snapshots__/UserSearch.test.jsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`User Search Page renders correctly using snapshot 1`] = `
<section
className="mb-3"
>
<form
className="form-inline"
>
<label
htmlFor="userIdentifier"
>
Username or Email
</label>
<input
className="form-control flex-grow-1 mr-1"
defaultValue=""
name="userIdentifier"
type="text"
/>
<button
className="btn btn-primary"
onBlur={[Function]}
onClick={[Function]}
onKeyDown={[Function]}
type="submit"
>
Search
</button>
</form>
</section>
`;

0 comments on commit b8d4759

Please sign in to comment.