-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
150 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127 changes: 127 additions & 0 deletions
127
packages/ui/test/__snapshots__/promotedArtist.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`(Snapshot) PromotedArtist (name and description) should render correctly 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
class="promoted_artist" | ||
style="background-image: url(https://via.placeholder.com/600x250);" | ||
> | ||
<div | ||
class="promoted_artist_info" | ||
> | ||
<div | ||
class="name" | ||
> | ||
Test artist | ||
</div> | ||
<div | ||
class="description" | ||
> | ||
Test description | ||
</div> | ||
<div | ||
class="spacer" | ||
/> | ||
<div | ||
class="button_row" | ||
> | ||
<button | ||
class="ui pink circular button nuclear button promoted_artist_button" | ||
> | ||
<i | ||
aria-hidden="true" | ||
class="itunes note icon" | ||
/> | ||
Check out | ||
</button> | ||
<a | ||
class="ui button nuclear button text promoted_artist_button" | ||
href="https://nuclear.js.org" | ||
rel="noopener noreferrer" | ||
role="button" | ||
target="_blank" | ||
> | ||
<i | ||
aria-hidden="true" | ||
class="external icon" | ||
/> | ||
External link | ||
</a> | ||
</div> | ||
</div> | ||
<div | ||
class="promoted_artist_image" | ||
> | ||
<img | ||
class="image" | ||
src="https://via.placeholder.com/300" | ||
style="mask-image: url(test-file-stub);" | ||
/> | ||
<img | ||
class="mask_shadow" | ||
src="test-file-stub" | ||
/> | ||
</div> | ||
</div> | ||
</DocumentFragment> | ||
`; | ||
|
||
exports[`(Snapshot) PromotedArtist (name only) should render correctly 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
class="promoted_artist" | ||
> | ||
<div | ||
class="promoted_artist_info" | ||
> | ||
<div | ||
class="name" | ||
> | ||
Test artist | ||
</div> | ||
<div | ||
class="spacer" | ||
/> | ||
<div | ||
class="button_row" | ||
> | ||
<button | ||
class="ui pink circular button nuclear button promoted_artist_button" | ||
> | ||
<i | ||
aria-hidden="true" | ||
class="itunes note icon" | ||
/> | ||
Check out | ||
</button> | ||
<a | ||
class="ui button nuclear button text promoted_artist_button" | ||
href="https://nuclear.js.org" | ||
rel="noopener noreferrer" | ||
role="button" | ||
target="_blank" | ||
> | ||
<i | ||
aria-hidden="true" | ||
class="external icon" | ||
/> | ||
External link | ||
</a> | ||
</div> | ||
</div> | ||
<div | ||
class="promoted_artist_image" | ||
> | ||
<img | ||
class="image" | ||
src="https://via.placeholder.com/300" | ||
style="mask-image: url(test-file-stub);" | ||
/> | ||
<img | ||
class="mask_shadow" | ||
src="test-file-stub" | ||
/> | ||
</div> | ||
</div> | ||
</DocumentFragment> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { PromotedArtist } from '../lib'; | ||
import { makeSnapshotTest } from './helpers'; | ||
|
||
makeSnapshotTest( | ||
PromotedArtist, { | ||
name: 'Test artist', | ||
imageUrl: 'https://via.placeholder.com/300', | ||
externalUrl: 'https://nuclear.js.org', | ||
onListenClick: () => {} | ||
}, '(Snapshot) PromotedArtist (name only)' | ||
); | ||
|
||
makeSnapshotTest( | ||
PromotedArtist, { | ||
name: 'Test artist', | ||
description: 'Test description', | ||
imageUrl: 'https://via.placeholder.com/300', | ||
backgroundImageUrl: 'https://via.placeholder.com/600x250', | ||
externalUrl: 'https://nuclear.js.org', | ||
onListenClick: () => {} | ||
}, '(Snapshot) PromotedArtist (name and description)' | ||
); |