Skip to content

Commit

Permalink
fix(homepage): broken test automation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Worrall committed Jun 16, 2020
1 parent 9e58bbe commit d926ee4
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/components/__tests__/__snapshots__/Header.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Array [
className="leftSideLink"
href="https://docs.newrelic.com/"
>
Docs
Documentation
</a>
</li>
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/__tests__/__snapshots__/collection.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`Data Collection Agents Page Renders correctly 1`] = `
className="leftSideLink"
href="https://docs.newrelic.com/"
>
Docs
Documentation
</a>
</li>
</ul>
Expand Down Expand Up @@ -288,7 +288,7 @@ exports[`Data Collection Agents Page Renders correctly 1`] = `
className="version footerMeta"
>
Version
0.5.0
0.5.5
</small>
</div>
</section>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`External Projects Page Renders correctly 1`] = `
className="leftSideLink"
href="https://docs.newrelic.com/"
>
Docs
Documentation
</a>
</li>
</ul>
Expand Down Expand Up @@ -253,7 +253,7 @@ exports[`External Projects Page Renders correctly 1`] = `
className="version footerMeta"
>
Version
0.5.0
0.5.5
</small>
</div>
</section>
Expand Down
31 changes: 14 additions & 17 deletions src/pages/__tests__/__snapshots__/index.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`HomePage Renders correctly 1`] = `
className="leftSideLink"
href="https://docs.newrelic.com/"
>
Docs
Documentation
</a>
</li>
</ul>
Expand Down Expand Up @@ -155,12 +155,16 @@ exports[`HomePage Renders correctly 1`] = `
className="homepageHeroHeading"
data-testid="homepageHeroHeading"
>
The future of observability is open.
Open standards.
<br />
Open instrumentation.
<br />
Open collaboration.
</h2>
<p
className="homepageHeroBodyCopy"
>
New Relic ❤️'s open source. We
We
<a
href="https://github.com/newrelic/opensource-website"
Expand All @@ -172,21 +176,21 @@ exports[`HomePage Renders correctly 1`] = `
<em>
you
</em>
to
to explore the
<a
href="/explore-projects"
>
explore the projects
open source projects
</a>
we're maintaining as well as our involvement in
we maintain and the
<a
href="/external-projects"
>
open standards
open standards projects
</a>
. Learn 
we participate in. Learn
<a
href="#"
onClick={[Function]}
Expand Down Expand Up @@ -261,13 +265,6 @@ exports[`HomePage Renders correctly 1`] = `
className="featuredExternalProjectsDescription"
>
New Relic contributes resources to the development of these projects.
<a
href="/external-projects"
>
View all
</a>
.
</p>
<div
className="externalProjectsList"
Expand Down Expand Up @@ -392,7 +389,7 @@ exports[`HomePage Renders correctly 1`] = `
className="version footerMeta"
>
Version
0.5.0
0.5.5
</small>
</div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/__tests__/__snapshots__/oss-category.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`OSS Category Page Renders correctly 1`] = `
className="leftSideLink"
href="https://docs.newrelic.com/"
>
Docs
Documentation
</a>
</li>
</ul>
Expand Down Expand Up @@ -509,7 +509,7 @@ exports[`OSS Category Page Renders correctly 1`] = `
className="version footerMeta"
>
Version
0.5.0
0.5.5
</small>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/__tests__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('HomePage Hero Header', () => {
const { getByTestId } = render(<HomePage />);
const expectation = getByTestId('homepageHeroHeading');
expect(expectation).toHaveTextContent(
'The future of observability is open.'
'Open standards. Open instrumentation. Open collaboration.'
);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports[`Adopt OpenJDK Renders correctly 1`] = `
className="leftSideLink"
href="https://docs.newrelic.com/"
>
Docs
Documentation
</a>
</li>
</ul>
Expand Down Expand Up @@ -314,7 +314,7 @@ exports[`Adopt OpenJDK Renders correctly 1`] = `
className="version footerMeta"
>
Version
0.5.0
0.5.5
</small>
</div>
</section>
Expand Down Expand Up @@ -372,7 +372,7 @@ exports[`Open Telemetry Page Renders correctly 1`] = `
className="leftSideLink"
href="https://docs.newrelic.com/"
>
Docs
Documentation
</a>
</li>
</ul>
Expand Down Expand Up @@ -636,7 +636,7 @@ exports[`Open Telemetry Page Renders correctly 1`] = `
className="version footerMeta"
>
Version
0.5.0
0.5.5
</small>
</div>
</section>
Expand Down Expand Up @@ -694,7 +694,7 @@ exports[`W3C Distributed Tracing Working Group Renders correctly 1`] = `
className="leftSideLink"
href="https://docs.newrelic.com/"
>
Docs
Documentation
</a>
</li>
</ul>
Expand Down Expand Up @@ -1186,7 +1186,7 @@ exports[`W3C Distributed Tracing Working Group Renders correctly 1`] = `
className="version footerMeta"
>
Version
0.5.0
0.5.5
</small>
</div>
</section>
Expand Down

0 comments on commit d926ee4

Please sign in to comment.