Skip to content

Commit

Permalink
feat: update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Naomi Aro committed Apr 16, 2021
1 parent 2654b8f commit 2344f49
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 18 deletions.
48 changes: 30 additions & 18 deletions app/tests/unit/components/Layout/__snapshots__/Header.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@

exports[`matches the last accepted Snapshot 1`] = `
<header
className="jsx-2264600173 "
className="jsx-1315309857 jsx-417345474 "
>
<div
className="jsx-2264600173 nav-header"
className="jsx-1315309857 jsx-417345474 nav-header"
>
<nav
aria-label="Main"
className="jsx-2264600173"
className="jsx-1315309857 jsx-417345474"
>
<div
className="jsx-2264600173 header-left"
className="jsx-1315309857 jsx-417345474 header-left"
>
<Link
href="/"
>
<a
className="jsx-2264600173"
className="jsx-1315309857 jsx-417345474"
>
<picture
className="jsx-2264600173"
className="jsx-1315309857 jsx-417345474"
>
<source
className="jsx-2264600173"
className="jsx-1315309857 jsx-417345474"
media="(max-width: 767.98px)"
srcSet="/static/bcid-reverse.svg"
/>
<img
alt="logo for Province of British Columbia CleanBC"
className="jsx-2264600173"
className="jsx-1315309857 jsx-417345474"
src="/static/BCID_CleanBC_rev_tagline_colour.svg"
/>
</picture>
</a>
</Link>
<h2
className="jsx-2264600173"
className="jsx-1315309857 jsx-417345474"
>
CleanBC Industrial Incentive Program
</h2>
<button
aria-label="Menu toggle"
className="jsx-2264600173 "
className="jsx-1315309857 jsx-417345474 "
id="menu-toggle"
onClick={[Function]}
type="button"
Expand Down Expand Up @@ -73,8 +73,15 @@ exports[`matches the last accepted Snapshot 1`] = `
pull={null}
pulse={false}
rotation={null}
size="2x"
size={null}
spin={false}
style={
Object {
"fontSize": "30px",
"paddingBottom": "2px",
"verticalAlign": "middle",
}
}
swapOpacity={false}
symbol={false}
title=""
Expand All @@ -83,32 +90,32 @@ exports[`matches the last accepted Snapshot 1`] = `
</button>
</div>
<ul
className="jsx-2264600173 header-right"
className="jsx-1315309857 jsx-417345474 header-right"
style={
Object {
"display": "none",
}
}
>
<li
className="jsx-2264600173"
className="jsx-1315309857 jsx-417345474"
>
<Link
href="/register"
>
<a
className="jsx-2264600173 nav-button"
className="jsx-1315309857 jsx-417345474 nav-button"
>
Register
</a>
</Link>
</li>
<li
className="jsx-2264600173"
className="jsx-1315309857 jsx-417345474"
>
<LoginForm>
<button
className="jsx-2264600173 nav-button"
className="jsx-1315309857 jsx-417345474 nav-button"
type="submit"
>
Login
Expand All @@ -124,9 +131,14 @@ exports[`matches the last accepted Snapshot 1`] = `
"(min-width: 992px)",
]
}
id="2882210987"
id="1326385637"
>
header.fixed.__jsx-style-dynamic-selector{position:fixed;z-index:1;width:100%;}.nav-header.__jsx-style-dynamic-selector{background-color:#036;border-bottom:2px solid #fcba19;padding:10px;color:#fff;}h2.__jsx-style-dynamic-selector{font-weight:normal;font-size:calc(1rem + 1vw);margin:0 0.5em;text-align:center;}.header-left.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.header-left.__jsx-style-dynamic-selector img.__jsx-style-dynamic-selector{height:46px;}.header-right.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;text-align:right;margin:0;padding:0.8em 1em 0 0;}nav.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}li.__jsx-style-dynamic-selector{list-style-type:none;}#menu-toggle.__jsx-style-dynamic-selector{-webkit-box-flex:0;-webkit-flex-grow:0;-ms-flex-positive:0;flex-grow:0;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;-webkit-flex-basis:48px;-ms-flex-preferred-size:48px;flex-basis:48px;height:45px;padding:0;}#menu-toggle.logged-in.__jsx-style-dynamic-selector{background:#f8f9fa;border-radius:100%;}@media screen and (min-width: 992px){nav.__jsx-style-dynamic-selector{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 15px;}.header-left.__jsx-style-dynamic-selector{width:auto;}header.__jsx-style-dynamic-selector h2.__jsx-style-dynamic-selector{margin:0 0 0 18px;}button#menu-toggle.__jsx-style-dynamic-selector{display:none;}.header-right.__jsx-style-dynamic-selector{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:auto;text-align:right;margin:0;padding:0;}.nav-button.__jsx-style-dynamic-selector{border-color:#f8f9fa;}li.__jsx-style-dynamic-selector{padding-left:12px;}}@media screen and (min-width:1200px){nav.__jsx-style-dynamic-selector{max-width:1140px;margin-left:auto;margin-right:auto;}}
</JSXStyle>
<JSXStyle
id="1315309857"
>
header.fixed.__jsx-style-dynamic-selector{position:fixed;z-index:1;width:100%;}.nav-header.__jsx-style-dynamic-selector{background-color:#036;border-bottom:2px solid #fcba19;padding:10px;color:#fff;}h2.__jsx-style-dynamic-selector{font-weight:normal;font-size:calc(1rem + 1vw);margin:0 0.5em;text-align:center;}.header-left.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.header-left.__jsx-style-dynamic-selector img.__jsx-style-dynamic-selector{height:46px;}.header-right.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;text-align:right;margin:0;padding:0.8em 1em 0 0;}nav.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}li.__jsx-style-dynamic-selector{list-style-type:none;}button.__jsx-style-dynamic-selector{background:none;border:none;color:inherit;}.nav-button.__jsx-style-dynamic-selector{color:#f8f9fa;display:inline-block;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;-webkit-transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out,border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out,border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}#menu-toggle.logged-in.__jsx-style-dynamic-selector{background:#f8f9fa;border-radius:100%;padding:0.375rem 0.7rem;}@media screen and (min-width: 992px){nav.__jsx-style-dynamic-selector{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 15px;}.header-left.__jsx-style-dynamic-selector{width:auto;}header.__jsx-style-dynamic-selector h2.__jsx-style-dynamic-selector{margin:0 0 0 18px;}button#menu-toggle.__jsx-style-dynamic-selector{display:none;}.header-right.__jsx-style-dynamic-selector{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:auto;text-align:right;margin:0;padding:0;}.nav-button.__jsx-style-dynamic-selector{border-color:#f8f9fa;}li.__jsx-style-dynamic-selector{padding-left:12px;}}@media screen and (min-width:1092px){header.__jsx-style-dynamic-selector h2.__jsx-style-dynamic-selector{font-size:2rem;}}@media screen and (min-width:1200px){nav.__jsx-style-dynamic-selector{max-width:1140px;margin-left:auto;margin-right:auto;}}
nav button{background:none;border:none;color:inherit;}.nav-button{color:#f8f9fa;display:inline-block;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;-webkit-transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out,border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out,border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
</JSXStyle>
</header>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ exports[`The DefaultLayout component matches the last accepted Snapshot 1`] = `
fixed={false}
isLoggedIn={false}
isRegistered={false}
userProfileDropdown={
<Relay(UserProfileDropdown)
user={null}
/>
}
/>
<main
className="jsx-1428985990"
Expand Down

0 comments on commit 2344f49

Please sign in to comment.