This repository has been archived by the owner on Jan 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add shapshots for Footer, Header, Sidebar
feat: add shapshots for Footer, Header, Sidebar
- Loading branch information
Showing
3 changed files
with
191 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
src/common/components/parts/Footer/__snapshots__/index.test.jsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Footer component same snapshot 1`] = ` | ||
<styled.footer> | ||
<styled.div> | ||
<Grid | ||
relaxed={true} | ||
> | ||
<GridRow | ||
verticalAlign="middle" | ||
> | ||
<GridColumn | ||
mobile={16} | ||
width={12} | ||
> | ||
<a | ||
href="https://github.com/Metnew/react-semantic.ui-starter" | ||
> | ||
<Header | ||
as="h3" | ||
inverted={true} | ||
> | ||
<Icon | ||
as="i" | ||
name="github" | ||
/> | ||
<HeaderContent> | ||
Noir | ||
<HeaderSubheader> | ||
Semantic.UI is cool, really. | ||
</HeaderSubheader> | ||
</HeaderContent> | ||
</Header> | ||
</a> | ||
</GridColumn> | ||
</GridRow> | ||
</Grid> | ||
</styled.div> | ||
</styled.footer> | ||
`; |
49 changes: 49 additions & 0 deletions
49
src/common/components/parts/Header/__snapshots__/index.test.jsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Header component same snapshot at Dashboard on non-mobile screen 1`] = ` | ||
<styled.header> | ||
<styled.div> | ||
<styled.span> | ||
Dashboard | ||
</styled.span> | ||
<styled.span /> | ||
<Popup | ||
content={ | ||
<FormattedMessage | ||
defaultMessage="Hello {name}" | ||
id="Header.Popup.HeaderButton" | ||
values={ | ||
Object { | ||
"name": <b> | ||
user | ||
</b>, | ||
} | ||
} | ||
/> | ||
} | ||
inverted={true} | ||
on="hover" | ||
position="top left" | ||
trigger={ | ||
<Styled(Button) | ||
aria-label="github-header-link-button" | ||
as="a" | ||
basic={true} | ||
circular={true} | ||
href="https://github.com/Metnew/react-semantic.ui-starter" | ||
icon={true} | ||
id="header-button" | ||
> | ||
<Icon | ||
as="i" | ||
fitted={true} | ||
link={true} | ||
name="github" | ||
size="large" | ||
/> | ||
</Styled(Button)> | ||
} | ||
/> | ||
</styled.div> | ||
</styled.header> | ||
`; |
102 changes: 102 additions & 0 deletions
102
src/common/components/parts/Sidebar/__snapshots__/index.test.jsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Sidebar component same snapshot if Sidebar is open and it is on mobile screen 1`] = ` | ||
<Styled(Sidebar) | ||
animation="push" | ||
as={[Function]} | ||
icon="labeled" | ||
vertical={true} | ||
visible={true} | ||
width="thin" | ||
> | ||
<styled.a | ||
href="https://github.com/Metnew/react-semantic.ui-starter" | ||
> | ||
<Styled(Logo) | ||
alt="logo" | ||
centered={true} | ||
shape="circular" | ||
/> | ||
</styled.a> | ||
<Styled(MenuItem) | ||
activeClassName="active" | ||
as={[Function]} | ||
exact={true} | ||
icon={true} | ||
link={true} | ||
to="/" | ||
> | ||
<Icon | ||
as="i" | ||
name="newspaper" | ||
/> | ||
Dashboard | ||
</Styled(MenuItem)> | ||
<Styled(MenuItem) | ||
activeClassName="active" | ||
as={[Function]} | ||
exact={true} | ||
icon={true} | ||
link={true} | ||
to="/users" | ||
> | ||
<Icon | ||
as="i" | ||
name="users" | ||
/> | ||
Users | ||
</Styled(MenuItem)> | ||
<Styled(MenuItem) | ||
as="a" | ||
href="https://github.com/Metnew/react-semantic.ui-starter" | ||
icon={true} | ||
link={true} | ||
> | ||
<Icon | ||
as="i" | ||
name="github" | ||
/> | ||
Github | ||
</Styled(MenuItem)> | ||
<Styled(MenuItem) | ||
activeClassName="active" | ||
as={[Function]} | ||
icon={true} | ||
link={true} | ||
to="/auth" | ||
> | ||
<Icon | ||
as="i" | ||
/> | ||
Auth | ||
</Styled(MenuItem)> | ||
<Styled(MenuItem) | ||
activeClassName="active" | ||
as={[Function]} | ||
exact={true} | ||
icon={true} | ||
link={true} | ||
to="/users/:id" | ||
> | ||
<Icon | ||
as="i" | ||
/> | ||
User | ||
</Styled(MenuItem)> | ||
<styled.span /> | ||
<Styled(MenuItem) | ||
onClick={[Function]} | ||
> | ||
<Icon | ||
as="i" | ||
name="sign out" | ||
/> | ||
Logout | ||
</Styled(MenuItem)> | ||
</Styled(Sidebar)> | ||
`; |