mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-08-14 02:27:35 -07:00
test(Bar): add snapshot tests
This commit is contained in:
parent
8cf996eed6
commit
ff96b43758
4 changed files with 154 additions and 1 deletions
|
@ -0,0 +1,104 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Bar renders Bar unchanged when logged in 1`] = `
|
||||
<div>
|
||||
<header
|
||||
class="MuiPaper-root MuiAppBar-root MuiAppBar-positionStatic MuiAppBar-colorSecondary MuiPaper-elevation4"
|
||||
style="background: rgb(0, 0, 0);"
|
||||
>
|
||||
<div
|
||||
class="MuiToolbar-root MuiToolbar-regular MuiToolbar-gutters"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root MuiBox-root-2"
|
||||
>
|
||||
<h6
|
||||
class="MuiTypography-root MuiTypography-h6 MuiTypography-colorInherit"
|
||||
>
|
||||
<a
|
||||
class="MuiTypography-root MuiLink-root MuiLink-underlineNone MuiTypography-colorInherit"
|
||||
href="/"
|
||||
>
|
||||
<img
|
||||
alt="logo"
|
||||
height="100"
|
||||
src="test-file-stub"
|
||||
width="100"
|
||||
/>
|
||||
</a>
|
||||
</h6>
|
||||
</div>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-colorInherit"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiButton-label"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
<span
|
||||
class="MuiTouchRipple-root"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
`;
|
||||
|
||||
exports[`Bar renders Bar unchanged when logged out 1`] = `
|
||||
<div>
|
||||
<header
|
||||
class="MuiPaper-root MuiAppBar-root MuiAppBar-positionStatic MuiAppBar-colorSecondary MuiPaper-elevation4"
|
||||
style="background: rgb(0, 0, 0);"
|
||||
>
|
||||
<div
|
||||
class="MuiToolbar-root MuiToolbar-regular MuiToolbar-gutters"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root MuiBox-root-1"
|
||||
>
|
||||
<h6
|
||||
class="MuiTypography-root MuiTypography-h6 MuiTypography-colorInherit"
|
||||
>
|
||||
<a
|
||||
class="MuiTypography-root MuiLink-root MuiLink-underlineNone MuiTypography-colorInherit"
|
||||
href="/"
|
||||
>
|
||||
<img
|
||||
alt="logo"
|
||||
height="100"
|
||||
src="test-file-stub"
|
||||
width="100"
|
||||
/>
|
||||
</a>
|
||||
</h6>
|
||||
</div>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiButton-label"
|
||||
>
|
||||
Log In
|
||||
</span>
|
||||
<span
|
||||
class="MuiTouchRipple-root"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
</div>
|
||||
`;
|
Loading…
Add table
Add a link
Reference in a new issue