Skip to content

Commit

Permalink
test: Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
flacial committed Sep 3, 2022
1 parent b797ba6 commit 6758eb8
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 76 deletions.
61 changes: 38 additions & 23 deletions __tests__/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12933,7 +12933,7 @@ exports[`Storyshots Components/ProfileImageInfo Profile Image Info 1`] = `
className="card shadow-sm"
>
<div
className="ms-auto me-auto mt-4 profile_image_container"
className="ms-auto me-auto mt-4 mb-3 profile_image_container"
>
<div
className="jsx-3123111835 ms-auto me-auto mt-4"
Expand All @@ -12946,42 +12946,57 @@ exports[`Storyshots Components/ProfileImageInfo Profile Image Info 1`] = `
/>
</div>
</div>
<h2
<h4
className="text-center mt-4"
>
Rahul Kalra
</h2>
</h4>
<div
className="d-flex justify-content-center"
>
<h4
<h5
className="text-muted"
>
@noob101
</h4>
</h5>
</div>
<div
className="d-flex ms-auto me-auto mb-4"
className="d-flex ms-auto me-auto mb-4 mt-3 flex-column"
>
<img
className="img-fluid"
height={20}
objectFit="contain"
src="/assets/discordClydeLogo.svg"
width={20}
/>
<h5
className="ms-2"
<div
className="d-flex align-items-center mb-2"
>
<a
href="https://discordapp.com/users/fakeDiscordId/"
onClick={[Function]}
onMouseEnter={[Function]}
onTouchStart={[Function]}
<img
className="img-fluid"
height={20}
objectFit="contain"
src="/assets/discordClydeLogo.svg"
width={20}
/>
<h5
className="ms-2 mb-0"
>
fakeDiscordUsername
</a>
</h5>
<a
href="https://discordapp.com/users/fakeDiscordId/"
onClick={[Function]}
onMouseEnter={[Function]}
onTouchStart={[Function]}
>
fakeDiscordUsername
</a>
</h5>
</div>
<button
className="btn borderless btn-outline-danger btn-outline-bg-danger"
onClick={[Function]}
style={
Object {
"color": "danger",
}
}
>
Unlink discord
</button>
</div>
</div>
`;
Expand Down
150 changes: 97 additions & 53 deletions __tests__/pages/profile/__snapshots__/username.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -175,31 +175,38 @@ exports[`user profile test Should render anonymous users 1`] = `
class="card shadow-sm"
>
<div
class="ms-auto me-auto mt-4 profile_image_container"
class="ms-auto me-auto mt-4 mb-3 profile_image_container"
>
<div
class="text-uppercase bg-primary rounded-circle text-light user_info_image mt-4"
>
A
</div>
</div>
<h2
<h4
class="text-center mt-4"
>
A
</h2>
</h4>
<div
class="d-flex justify-content-center"
>
<h4
<h5
class="text-muted"
>
@fake user
</h4>
</h5>
</div>
<div
class="d-flex ms-auto me-auto mb-4"
/>
class="d-flex ms-auto me-auto mb-4 mt-3 flex-column"
>
<button
class="btn btn-primary btn-md btn-block mt-3"
type="button"
>
Connect to discord
</button>
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -1044,31 +1051,38 @@ exports[`user profile test Should render if no stars received 1`] = `
class="card shadow-sm"
>
<div
class="ms-auto me-auto mt-4 profile_image_container"
class="ms-auto me-auto mt-4 mb-3 profile_image_container"
>
<div
class="text-uppercase bg-primary rounded-circle text-light user_info_image mt-4"
>
fu
</div>
</div>
<h2
<h4
class="text-center mt-4"
>
fake user
</h2>
</h4>
<div
class="d-flex justify-content-center"
>
<h4
<h5
class="text-muted"
>
@fake user
</h4>
</h5>
</div>
<div
class="d-flex ms-auto me-auto mb-4"
/>
class="d-flex ms-auto me-auto mb-4 mt-3 flex-column"
>
<button
class="btn btn-primary btn-md btn-block mt-3"
type="button"
>
Connect to discord
</button>
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -1918,31 +1932,38 @@ exports[`user profile test Should render nulled challenges 1`] = `
class="card shadow-sm"
>
<div
class="ms-auto me-auto mt-4 profile_image_container"
class="ms-auto me-auto mt-4 mb-3 profile_image_container"
>
<div
class="text-uppercase bg-primary rounded-circle text-light user_info_image mt-4"
>
fu
</div>
</div>
<h2
<h4
class="text-center mt-4"
>
fake user
</h2>
</h4>
<div
class="d-flex justify-content-center"
>
<h4
<h5
class="text-muted"
>
@fake user
</h4>
</h5>
</div>
<div
class="d-flex ms-auto me-auto mb-4"
/>
class="d-flex ms-auto me-auto mb-4 mt-3 flex-column"
>
<button
class="btn btn-primary btn-md btn-block mt-3"
type="button"
>
Connect to discord
</button>
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -2828,31 +2849,38 @@ exports[`user profile test Should render nulled submission lessonIds 1`] = `
class="card shadow-sm"
>
<div
class="ms-auto me-auto mt-4 profile_image_container"
class="ms-auto me-auto mt-4 mb-3 profile_image_container"
>
<div
class="text-uppercase bg-primary rounded-circle text-light user_info_image mt-4"
>
fu
</div>
</div>
<h2
<h4
class="text-center mt-4"
>
fake user
</h2>
</h4>
<div
class="d-flex justify-content-center"
>
<h4
<h5
class="text-muted"
>
@fake user
</h4>
</h5>
</div>
<div
class="d-flex ms-auto me-auto mb-4"
/>
class="d-flex ms-auto me-auto mb-4 mt-3 flex-column"
>
<button
class="btn btn-primary btn-md btn-block mt-3"
type="button"
>
Connect to discord
</button>
</div>
</div>
</div>
<div
Expand Down Expand Up @@ -3697,31 +3725,38 @@ exports[`user profile test Should render profile 1`] = `
class="card shadow-sm"
>
<div
class="ms-auto me-auto mt-4 profile_image_container"
class="ms-auto me-auto mt-4 mb-3 profile_image_container"
>
<div
class="text-uppercase bg-primary rounded-circle text-light user_info_image mt-4"
>
fu
</div>
</div>
<h2
<h4
class="text-center mt-4"
>
fake user
</h2>
</h4>
<div
class="d-flex justify-content-center"
>
<h4
<h5
class="text-muted"
>
@fake user
</h4>
</h5>
</div>
<div
class="d-flex ms-auto me-auto mb-4"
/>
class="d-flex ms-auto me-auto mb-4 mt-3 flex-column"
>
<button
class="btn btn-primary btn-md btn-block mt-3"
type="button"
>
Connect to discord
</button>
</div>
</div>
<div
class="profile-comments"
Expand Down Expand Up @@ -4742,7 +4777,7 @@ exports[`user profile test should render discord avatar and username if user con
class="card shadow-sm"
>
<div
class="ms-auto me-auto mt-4 profile_image_container"
class="ms-auto me-auto mt-4 mb-3 profile_image_container"
>
<div
class="jsx-3123111835 ms-auto me-auto mt-4"
Expand All @@ -4755,37 +4790,46 @@ exports[`user profile test should render discord avatar and username if user con
/>
</div>
</div>
<h2
<h4
class="text-center mt-4"
>
fake user
</h2>
</h4>
<div
class="d-flex justify-content-center"
>
<h4
<h5
class="text-muted"
>
@fake user
</h4>
</h5>
</div>
<div
class="d-flex ms-auto me-auto mb-4"
class="d-flex ms-auto me-auto mb-4 mt-3 flex-column"
>
<img
height="20"
src="/assets/discordClydeLogo.svg"
width="20"
/>
<h5
class="ms-2"
<div
class="d-flex align-items-center mb-2"
>
<a
href="https://discordapp.com/users/fakeDiscordId/"
<img
height="20"
src="/assets/discordClydeLogo.svg"
width="20"
/>
<h5
class="ms-2 mb-0"
>
fakeDiscordUser
</a>
</h5>
<a
href="https://discordapp.com/users/fakeDiscordId/"
>
fakeDiscordUser
</a>
</h5>
</div>
<button
class="btn borderless btn-outline-danger btn-outline-bg-danger"
>
Unlink discord
</button>
</div>
</div>
<div
Expand Down

0 comments on commit 6758eb8

Please sign in to comment.