Skip to content

Commit

Permalink
Regenerate snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Sep 25, 2023
1 parent c528442 commit d914d0f
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 2 deletions.
131 changes: 131 additions & 0 deletions apps/codeforafrica/src/components/Articles/Articles.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,137 @@ exports[`<Articles /> renders unchanged 1`] = `
</div>
</div>
</div>
<div
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 css-cy97kn-MuiGrid-root"
>
<div
class="MuiPaper-root MuiPaper-outlined MuiCard-root css-ern672-MuiPaper-root-MuiCard-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiCardActionArea-root css-275i79-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiCardActionArea-root"
href="/stories/article-1"
tabindex="0"
>
<div
class="MuiGrid-root MuiGrid-container css-1xzqqmo-MuiGrid-root"
>
<div
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-md-auto css-gjb3vx-MuiGrid-root"
>
<img
alt="Featured Article Image"
class="MuiCardMedia-root MuiCardMedia-media MuiCardMedia-img css-1eqknb7-MuiCardMedia-root"
src="https://res.cloudinary.com/code-for-africa/image/upload/v1650885664/codeforafrica/unsplash_L6hr1BptcNc_of23p3.png"
/>
</div>
<div
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-md-true css-1w7778q-MuiGrid-root"
>
<div
class="MuiCardContent-root css-jq2jyh-MuiCardContent-root"
>
<p
class="MuiTypography-root MuiTypography-body1 css-pdkb43-MuiTypography-root"
>
Battle for gender equality in African media continues
</p>
<div
class="MuiBox-root css-1xbb54b"
>
<p
class="MuiTypography-root MuiTypography-body1 css-fc9h1t-MuiTypography-root"
>
Lorem ipsum dolor sit amet consectetur adipiscing elit mattis, vestibulum potenti rhoncus eget lacus fermentum taciti quam, quis curae accumsan viverra semper dapibus sed.
</p>
</div>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1it8s17-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Read More
</button>
<span
class="MuiTypography-root MuiTypography-caption css-13ob0ik-MuiTypography-root"
>
Jan 6, 2022
</span>
</div>
</div>
<div
class="MuiGrid-root MuiGrid-container MuiGrid-item MuiGrid-grid-xs-12 css-1phijti-MuiGrid-root"
>
<div
class="MuiGrid-root MuiGrid-item css-13i4rnv-MuiGrid-root"
>
<div
class="MuiCardContent-root css-148nlxb-MuiCardContent-root"
>
<h1
class="MuiTypography-root MuiTypography-h1 css-gklt6i-MuiTypography-root"
>
Battle for gender equality in African media continues
</h1>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained-reverse MuiButton-contained-reversePrimary MuiButton-sizeLarge MuiButton-contained-reverseSizeLarge MuiButton-root MuiButton-contained-reverse MuiButton-contained-reversePrimary MuiButton-sizeLarge MuiButton-contained-reverseSizeLarge css-18nvokw-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
READ STORY
</button>
</div>
</div>
</div>
</div>
<span
class="MuiCardActionArea-focusHighlight css-1v2exvi-MuiCardActionArea-focusHighlight"
/>
</a>
</div>
</div>
<div
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 css-1nco2t7-MuiGrid-root"
>
<div
class="MuiGrid-root MuiGrid-container css-mxdmwy-MuiGrid-root"
>
<div
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-12 MuiGrid-grid-sm-4 css-1dte7n6-MuiGrid-root"
>
<div
class="MuiPaper-root MuiPaper-outlined MuiCard-root css-1dxfqf3-MuiPaper-root-MuiCard-root"
>
<a
class="MuiTypography-root MuiTypography-inherit MuiLink-root MuiLink-underlineAlways MuiButtonBase-root MuiCardActionArea-root css-mfu8qg-MuiTypography-root-MuiLink-root-MuiButtonBase-root-MuiCardActionArea-root"
href="/stories/article-1"
tabindex="0"
>
<img
class="MuiCardMedia-root MuiCardMedia-media MuiCardMedia-img css-gzk243-MuiCardMedia-root"
src="https://res.cloudinary.com/code-for-africa/image/upload/v1650885664/codeforafrica/unsplash_L6hr1BptcNc_of23p3.png"
/>
<div
class="MuiCardContent-root css-q7lov9-MuiCardContent-root"
>
<h6
class="MuiTypography-root MuiTypography-subtitle1 css-t0ku10-MuiTypography-root"
>
Battle for gender equality in African media continues
</h6>
<span
class="MuiTypography-root MuiTypography-caption css-1xdk20n-MuiTypography-root"
>
Jan 6, 2022
</span>
</div>
<span
class="MuiCardActionArea-focusHighlight css-1v2exvi-MuiCardActionArea-focusHighlight"
/>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<nav
Expand Down
44 changes: 42 additions & 2 deletions apps/codeforafrica/src/components/Articles/Articles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,48 @@ import theme from "@/codeforafrica/theme";
const render = createRender({ theme });

const defaultProps = {
articles: [],
featured: [],
articles: [
{
title: "Battle for gender equality in African media continues",
excerpt: [
{
children: [
{
text: "Lorem ipsum dolor sit amet consectetur adipiscing elit mattis, vestibulum potenti rhoncus eget lacus fermentum taciti quam, quis curae accumsan viverra semper dapibus sed. ",
children: null,
},
],
},
],
publishedOn: "Jan 6, 2022",
image: {
src: "https://res.cloudinary.com/code-for-africa/image/upload/v1650885664/codeforafrica/unsplash_L6hr1BptcNc_of23p3.png",
alt: "Featured Article Image",
},
readMoreLabel: "Read Story",
href: "/stories/article-1",
},
],
featured: {
title: "Battle for gender equality in African media continues",
excerpt: [
{
children: [
{
text: "Lorem ipsum dolor sit amet consectetur adipiscing elit mattis, vestibulum potenti rhoncus eget lacus fermentum taciti quam, quis curae accumsan viverra semper dapibus sed. ",
children: null,
},
],
},
],
publishedOn: "Jan 6, 2022",
image: {
src: "https://res.cloudinary.com/code-for-africa/image/upload/v1650885664/codeforafrica/unsplash_L6hr1BptcNc_of23p3.png",
alt: "Featured Article Image",
},
readMoreLabel: "Read Story",
href: "/stories/article-1",
},
pagination: {
count: 10,
page: 1,
Expand Down

0 comments on commit d914d0f

Please sign in to comment.