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 + + +
-
-
-
- - - - - test track 1 - - - 02:00 - -
- -
+
+ + + test track 1 + + +
- - - - - test track 2 - - - 01:03 - -
- -
+
+ + + test track 2 + + +
- - - - - test track 3 - - - 00:07 - -
- -
+
+ + + test track 3 + + +
+
+ + + diff --git a/packages/app/app/containers/ArtistViewContainer/__snapshots__/ArtistViewContainer.test.tsx.snap b/packages/app/app/containers/ArtistViewContainer/__snapshots__/ArtistViewContainer.test.tsx.snap index aec47faeb1..dd65b7b57a 100644 --- a/packages/app/app/containers/ArtistViewContainer/__snapshots__/ArtistViewContainer.test.tsx.snap +++ b/packages/app/app/containers/ArtistViewContainer/__snapshots__/ArtistViewContainer.test.tsx.snap @@ -113,67 +113,72 @@ exports[`Artist view container should display an artist 1`] = `
- - - +
-
- - - - - - - + +
+
+ +
-
- - - - - - - - - - - - - - - - - - - - - -
- + +
  -
+
- Title -
+ +
Playcount -
+
-
-
-
- - - - - - test artist top track 1 - - + +
- 6,900,237 - -
- -
+ -
- - - - - - test artist top track 2 - - + +
- 6,969 - -
- -
+ -
- - - - - - test artist top track 3 - - + +
- 1 - -
- -
+ -
+
+ + +
+
+ + diff --git a/packages/app/app/containers/DeezerPlaylistAdapter/__snapshots__/DeezerPlaylistAdapter.test.tsx.snap b/packages/app/app/containers/DeezerPlaylistAdapter/__snapshots__/DeezerPlaylistAdapter.test.tsx.snap index 2aba0cf9a4..1d5d972bd0 100644 --- a/packages/app/app/containers/DeezerPlaylistAdapter/__snapshots__/DeezerPlaylistAdapter.test.tsx.snap +++ b/packages/app/app/containers/DeezerPlaylistAdapter/__snapshots__/DeezerPlaylistAdapter.test.tsx.snap @@ -107,23 +107,27 @@ exports[`Deezer playlist adapter should display a Deezer playlist 1`] = ` /> - - - +
-
- - - - - - - - + +
+
+ +
-
- - - - - - - - - - - - - - - - -
- + +
-
+ +
  -
+
- Title -
+ +
- Artist -
+ +
-
-
-
- - - - - - - track 1 - - - artist 1 - -
- -
+
+ + + track 1 + + +
- - - - - - - track 2 - - - artist 2 - -
- -
+
+ + + track 2 + + +
+ + + + diff --git a/packages/app/app/containers/FavoritesContainer/__snapshots__/FavoritesContainer.tracks.test.tsx.snap b/packages/app/app/containers/FavoritesContainer/__snapshots__/FavoritesContainer.tracks.test.tsx.snap index b158cffc70..3bbf495bf0 100644 --- a/packages/app/app/containers/FavoritesContainer/__snapshots__/FavoritesContainer.tracks.test.tsx.snap +++ b/packages/app/app/containers/FavoritesContainer/__snapshots__/FavoritesContainer.tracks.test.tsx.snap @@ -196,7 +196,7 @@ exports[`Favorite tracks view container should display favorite tracks 1`] = `
- - - +
-
- - - - - - - - + +
+
+ +
-
- - - - - - - - - - - - - - - - -
  - +
-
+ +
-
+ +
- Title -
+ +
- Artist -
+ +
-
-
-
- - - - - - - test track 2 - - - test artist 2 - -
- -
+
+ +
+
+ + + test track 2 + + +
- - - - - - - test track 1 - - - test artist 1 - -
- -
+
+ +
+
+ + + test track 1 + + +
+
+ + + @@ -745,7 +768,7 @@ exports[`Favorite tracks view container should show a popup when a track is clic
- - - +
-
- - - - - - - - + +
+
+ +
-
- - - - - - - - - - - - - - - - -
  - +
-
+ +
-
+ +
- Title -
+ +
- Artist -
+ +
-
-
-
- - - - - - - test track 2 - - - test artist 2 - -
- -
+
+ +
+
+ + + test track 2 + + +
- - - - - - - test track 1 - - - test artist 1 - -
- -
+
+ +
+
+ + + test track 1 + + +
+
+ + + diff --git a/packages/app/app/containers/LibraryViewContainer/__snapshots__/LibraryViewContainer.test.tsx.snap b/packages/app/app/containers/LibraryViewContainer/__snapshots__/LibraryViewContainer.test.tsx.snap index da5b40ea68..716701a7b1 100644 --- a/packages/app/app/containers/LibraryViewContainer/__snapshots__/LibraryViewContainer.test.tsx.snap +++ b/packages/app/app/containers/LibraryViewContainer/__snapshots__/LibraryViewContainer.test.tsx.snap @@ -565,98 +565,123 @@ exports[`Library view container should display local library in folder tree mode loading="false" />
+ class="BaseTable__row BaseTable__row--depth-0 BaseTable__row--customized" + role="row" + style="position: absolute; left: 0px; top: 0px; height: 23px; width: 600px;" + > +
+
+ ▸ +
+
+ Music +
+
+
+
+
+
+
+
+
+
+
+
-
-
- Name -
+ Name
+
+
-
- Album -
+ Album
+
+
-
- Artist -
+ Artist
-
-
-
-
-
-
@@ -802,23 +827,27 @@ exports[`Library view container should display local library in simple list mode
- - - +
-
- - - - - - - - - + +
+
+ +
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
- + +
-
+ +
- 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 - -
- -
+ -
+
+
+
+
diff --git a/packages/app/app/containers/PlayQueueContainer/PlayQueueContainer.test.tsx b/packages/app/app/containers/PlayQueueContainer/PlayQueueContainer.test.tsx index 2a1791aad1..306a779798 100644 --- a/packages/app/app/containers/PlayQueueContainer/PlayQueueContainer.test.tsx +++ b/packages/app/app/containers/PlayQueueContainer/PlayQueueContainer.test.tsx @@ -12,13 +12,6 @@ import { } from '../../../test/storeBuilders'; import userEvent from '@testing-library/user-event'; -jest.mock( - 'react-virtualized-auto-sizer', - () => - ({ children }) => - children({ height: 600, width: 600 }) -); - describe('Play Queue container', () => { beforeAll(() => { setupI18Next(); diff --git a/packages/app/app/containers/PlaylistViewContainer/__snapshots__/PlaylistViewContainer.test.tsx.snap b/packages/app/app/containers/PlaylistViewContainer/__snapshots__/PlaylistViewContainer.test.tsx.snap index 032ab1592c..c9b7c70d6f 100644 --- a/packages/app/app/containers/PlaylistViewContainer/__snapshots__/PlaylistViewContainer.test.tsx.snap +++ b/packages/app/app/containers/PlaylistViewContainer/__snapshots__/PlaylistViewContainer.test.tsx.snap @@ -110,29 +110,34 @@ exports[`Playlist view container should display a playlist 1`] = ` /> - - - +
-
- - - - - - - - - + +
+
+ +
-
- - - - - - - - - - - - - - - - - - -
  - +
-
+ +
-
+ +
  -
+
- Title -
+ +
- Artist -
+ +
-
-
-
- - - - - - - - test track - - + - test artist 1 - -
- -
+
+ + + test track + + +
- - - - - - - - test track 22 - - + - test artist 2 - -
- -
+
+ + + test track 22 + + +
+ + + + diff --git a/packages/app/app/containers/SpotifyPlaylistAdapter/__snapshots__/SpotifyPlaylistAdapter.test.tsx.snap b/packages/app/app/containers/SpotifyPlaylistAdapter/__snapshots__/SpotifyPlaylistAdapter.test.tsx.snap index 553e473dd1..c4e532fe36 100644 --- a/packages/app/app/containers/SpotifyPlaylistAdapter/__snapshots__/SpotifyPlaylistAdapter.test.tsx.snap +++ b/packages/app/app/containers/SpotifyPlaylistAdapter/__snapshots__/SpotifyPlaylistAdapter.test.tsx.snap @@ -107,23 +107,27 @@ exports[`Spotfiy playlist adapter should display a Spotify playlist 1`] = ` /> - - - +
-
- - - - - - - - - + +
+
+ +
-
- - - - - - - - - - - - - - - - - - -
- + +
-
+ +
  -
+
- Title -
+ +
- Artist -
+ +
- Length -
+ Length + + +
-
-
-
- - - - - - - Test track - - - Test artist - - 02:00 - -
- -
+
+ + + Test track + + +
- - - - - - - Another test track - - - Another test artist - - 03:00 - -
- -
+
+ + + Another test track + + +
+ + + +