Skip to content

Commit

Permalink
fix: update test snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
hinakhadim committed Aug 15, 2024
1 parent 40d40c0 commit eb16402
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ThemeToggleButton.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import { getConfig } from '@edx/frontend-platform';
import Cookies from 'universal-cookie';

Expand Down
160 changes: 160 additions & 0 deletions src/__snapshots__/Header.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,46 @@ exports[`<Header /> renders correctly for anonymous desktop 1`] = `
aria-label="Secondary"
className="nav secondary-menu-container align-items-center ml-auto"
>
<div
className="theme-toggle-button"
>
<span
id="darkmode"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex="0"
>
<div
className="darkmode_icon"
>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
</div>
</span>
</div>
<a
className="btn mr-2 btn-link"
href="http://localhost:18000/login"
Expand Down Expand Up @@ -143,6 +183,46 @@ exports[`<Header /> renders correctly for anonymous mobile 1`] = `
/>
</a>
</div>
<div
className="theme-toggle-button"
>
<span
id="darkmode"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex="0"
>
<div
className="darkmode_icon"
>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
</div>
</span>
</div>
<div
className="mobile-menu"
>
Expand Down Expand Up @@ -225,6 +305,46 @@ exports[`<Header /> renders correctly for authenticated desktop 1`] = `
aria-label="Secondary"
className="nav secondary-menu-container align-items-center ml-auto"
>
<div
className="theme-toggle-button"
>
<span
id="darkmode"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex="0"
>
<div
className="darkmode_icon"
>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
</div>
</span>
</div>
<div
className="menu null"
onKeyDown={[Function]}
Expand Down Expand Up @@ -376,6 +496,46 @@ exports[`<Header /> renders correctly for authenticated mobile 1`] = `
/>
</a>
</div>
<div
className="theme-toggle-button"
>
<span
id="darkmode"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
tabIndex="0"
>
<div
className="darkmode_icon"
>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
<span
className="ray"
/>
</div>
</span>
</div>
<div
className="mobile-menu"
>
Expand Down

0 comments on commit eb16402

Please sign in to comment.