From 6f9213dd921e9b2ad9690c9d9d35af6f0d8c5cce Mon Sep 17 00:00:00 2001 From: nukeop <12746779+nukeop@users.noreply.github.com> Date: Sun, 8 Sep 2024 00:19:24 +0200 Subject: [PATCH] Update snapshots --- .../__mocks__/react-virtualized-auto-sizer.ts | 2 + .../app/app/components/PlayQueue/index.tsx | 2 +- .../AlbumViewContainer.test.tsx.snap | 625 +++++----- .../ArtistViewContainer.test.tsx.snap | 553 ++++----- .../DashboardContainer.test.tsx.snap | 532 +++++---- .../DeezerPlaylistAdapter.test.tsx.snap | 497 ++++---- .../FavoritesContainer.tracks.test.tsx.snap | 1002 +++++++++-------- .../LibraryViewContainer.test.tsx.snap | 866 +++++++------- .../PlayQueueContainer.test.tsx | 7 - .../PlaylistViewContainer.test.tsx.snap | 574 +++++----- .../SpotifyPlaylistAdapter.test.tsx.snap | 530 +++++---- 11 files changed, 2733 insertions(+), 2457 deletions(-) create mode 100644 packages/app/__mocks__/react-virtualized-auto-sizer.ts diff --git a/packages/app/__mocks__/react-virtualized-auto-sizer.ts b/packages/app/__mocks__/react-virtualized-auto-sizer.ts new file mode 100644 index 0000000000..1b8f2826e6 --- /dev/null +++ b/packages/app/__mocks__/react-virtualized-auto-sizer.ts @@ -0,0 +1,2 @@ +export default ({ children }) => + children({ height: 600, width: 600 }); diff --git a/packages/app/app/components/PlayQueue/index.tsx b/packages/app/app/components/PlayQueue/index.tsx index 3ba385792b..e39df7c9fb 100644 --- a/packages/app/app/components/PlayQueue/index.tsx +++ b/packages/app/app/components/PlayQueue/index.tsx @@ -5,6 +5,7 @@ import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; import { TFunction, useTranslation } from 'react-i18next'; import { Icon } from 'semantic-ui-react'; import { areEqual, FixedSizeList as List } from 'react-window'; +import AutoSizer from 'react-virtualized-auto-sizer'; import { Playlist } from '@nuclear/core'; import { StreamData } from '@nuclear/core/src/plugins/plugins.types'; @@ -20,7 +21,6 @@ import QueuePopupContainer from '../../containers/QueuePopupContainer'; import { StreamVerificationContainer } from '../../containers/StreamVerificationContainer'; import styles from './styles.scss'; -import AutoSizer from 'react-virtualized-auto-sizer'; import { QueueItemClone } from './QueueItemClone'; type PlayQueueProps = { diff --git a/packages/app/app/containers/AlbumViewContainer/__snapshots__/AlbumViewContainer.test.tsx.snap b/packages/app/app/containers/AlbumViewContainer/__snapshots__/AlbumViewContainer.test.tsx.snap index d6a6154074..913f577966 100644 --- a/packages/app/app/containers/AlbumViewContainer/__snapshots__/AlbumViewContainer.test.tsx.snap +++ b/packages/app/app/containers/AlbumViewContainer/__snapshots__/AlbumViewContainer.test.tsx.snap @@ -121,23 +121,27 @@ exports[`Album view container should display an album 1`] = `
- - - | -
+
+
- |
-
+
-
Title
-
-
- |
-
+
+
- Length
- |
-
+ Length
+
+
+
-
-
- |
-
---|---|---|---|---|
- - - 1 - - | -- - | -- - - test track 1 - - | -- 02:00 - | -
-
-
-
+
+
+
+
+ test track 1
+
+
+
+
+
+ 02:00
+
+
+
-
+
+
+
+ |
-
- - - 2 - - | -- - | -- - - test track 2 - - | -- 01:03 - | -
-
-
-
+
+
+
+
+ test track 2
+
+
+
+
+
+ 01:03
+
+
+
-
+
+
+
+ |
-
- - - 3 - - | -- - | -- - - test track 3 - - | -- 00:07 - | -
-
-
-
+
+
+
+
+ test track 3
+
+
+
+
+
+ 00:07
+
+
+
-
+
+
+
+ |
-
- - - | -
+
+
- |
-
+
-
Title
-
-
- |
-
+
+
Playcount
- |
-
+
-
-
- |
-
---|---|---|---|---|
- - | -- - | -
-
-
- test artist top track 1
-
-
+
+
- |
- - 6,900,237 - | -
-
-
-
+
+
+
- |
-
- - | -
- |
-
-
-
- test artist top track 2
-
-
+
+
+
-
+ test artist top track 2
+
+
+
+
+ 6,969
+
+
+
-
-
-
- |
- - 6,969 - | -
-
-
-
+
+
+
- |
-
- - | -
- |
-
-
-
- test artist top track 3
-
-
+
+
+
-
+ test artist top track 3
+
+
+
+
+ 1
+
+
+
-
-
-
- |
- - 1 - | -
-
-
-
+
+
+
- |
-
- - - | -
+
+
-
-
- |
-
+
+
- |
-
+
-
Title
-
-
- |
-
+
+
-
Artist
-
-
- |
-
+
+
- Length
- |
-
+ Length
+
+
+
-
-
- |
-
---|---|---|---|---|---|---|
- |
- - - | -
- |
- - - - top track 1 - - | -- top track artist 1 - | -- 01:40 - | -
-
-
-
+
+
+
+
+ top track 1
+
+
+
+
+
+ top track artist 1
+
+
+ 01:40
+
+
+
-
+
+
+
+ |
-
- |
- - - | -
- |
- - - - top track 2 - - | -- top track artist 2 - | -- 01:18 - | -
-
-
-
+
+
+
+
+ top track 2
+
+
+
+
+
+ top track artist 2
+
+
+ 01:18
+
+
+
-
+
+
+
+ |
-
- - - | -
+
+
-
-
- |
-
+
+
- |
-
+
-
Title
-
-
- |
-
+
+
-
Artist
-
-
- |
-
+
+
-
-
- |
-
---|---|---|---|---|---|
- |
- - - | -
- |
- - - - track 1 - - | -- artist 1 - | -
-
-
-
+
+
+
+
+ track 1
+
+
+
+
+
+ artist 1
+
+
+
-
+
+
+
+ |
-
- |
- - - | -
- |
- - - - track 2 - - | -- artist 2 - | -
-
-
-
+
+
+
+
+ track 2
+
+
+
+
+
+ artist 2
+
+
+
-
+
+
+
+ |
-
- | -
+
-
-
- |
-
+
+
-
-
- |
-
+
+
-
Title
-
-
- |
-
+
+
-
Artist
-
-
- |
-
+
+
-
-
- |
-
---|---|---|---|---|---|
- |
-
- |
- - - | -- - - test track 2 - - | -- test artist 2 - | -
-
-
-
+
+ 1
+
+
+
+
+
+
+
+
+ test track 2
+
+
+
+
+
+ test artist 2
+
+
+
-
+
+
+
+ |
-
- |
-
- |
- - - | -- - - test track 1 - - | -- test artist 1 - | -
-
-
-
+
+ 2
+
+
+
+
+
+
+
+
+ test track 1
+
+
+
+
+
+ test artist 1
+
+
+
-
+
+
+
+ |
-
- | -
+
-
-
- |
-
+
+
-
-
- |
-
+
+
-
Title
-
-
- |
-
+
+
-
Artist
-
-
- |
-
+
+
-
-
- |
-
---|---|---|---|---|---|
- |
-
- |
- - - | -- - - test track 2 - - | -- test artist 2 - | -
-
-
-
+
+ 1
+
+
+
+
+
+
+
+
+ test track 2
+
+
+
+
+
+ test artist 2
+
+
+
-
+
+
+
+ |
-
- |
-
- |
- - - | -- - - test track 1 - - | -- test artist 1 - | -
-
-
-
+
+ 2
+
+
+
+
+
+
+
+
+ test track 1
+
+
+
+
+
+ test artist 1
+
+
+
-
+
+
+
+ |
-
- - - | -
+
+
-
-
- |
-
+
+
-
Title
-
-
- |
-
+
+
-
Artist
-
-
- |
-
+
+
- Album
- |
-
+ Album
+
+
+
- Length
- |
-
+ Length
+
+
+
-
-
- |
-
---|---|---|---|---|---|---|
- |
- - - | -- - - local track 1 - - | -- local artist 1 - | -- local album 1 - | -- 05:00 - | -
-
-
-
+
+
+
- |
-
- |
- - - | -- - - local track 2 - - | -- local artist 1 - | -- local album 1 - | -- 03:20 - | -
-
-
-
+
+
+
- |
-
- |
- - - | -- - - local track 3 - - | -- local artist 2 - | -- local album 2 - | -- 01:40 - | -
-
-
-
+
+
+
- |
-
- | -
+
-
-
- |
-
+
+
-
-
- |
-
+
+
- |
-
+
-
Title
-
-
- |
-
+
+
-
Artist
-
-
- |
-
+
+
-
-
- |
-
---|---|---|---|---|---|---|
- |
-
- |
- - - | -
- |
- - - - test track - - | -- test artist 1 - | -
-
-
-
+
+
+
+
+ test track
+
+
+
+
+
+ test artist 1
+
+
+
-
+
+
+
+ |
-
- |
-
- |
- - - | -
- |
- - - - test track 22 - - | -- test artist 2 - | -
-
-
-
+
+
+
+
+ test track 22
+
+
+
+
+
+ test artist 2
+
+
+
-
+
+
+
+ |
-
- - - | -
+
+
-
-
- |
-
+
+
- |
-
+
-
Title
-
-
- |
-
+
+
-
Artist
-
-
- |
-
+
+
- Length
- |
-
+ Length
+
+
+
-
-
- |
-
---|---|---|---|---|---|---|
- |
- - - | -
- |
- - - - Test track - - | -- Test artist - | -- 02:00 - | -
-
-
-
+
+
+
+
+ Test track
+
+
+
+
+
+ Test artist
+
+
+ 02:00
+
+
+
-
+
+
+
+ |
-
- |
- - - | -
- |
- - - - Another test track - - | -- Another test artist - | -- 03:00 - | -
-
-
-
+
+
+
+
+ Another test track
+
+
+
+
+
+ Another test artist
+
+
+ 03:00
+
+
+
-
+
+
+
+ |
-