diff --git a/resources/assets/js/__tests__/setup.ts b/resources/assets/js/__tests__/setup.ts index ca51d2d6..33610c83 100644 --- a/resources/assets/js/__tests__/setup.ts +++ b/resources/assets/js/__tests__/setup.ts @@ -9,3 +9,7 @@ global.ResizeObserver = global.ResizeObserver || observe: vi.fn(), unobserve: vi.fn() })) + +window.HTMLMediaElement.prototype.load = vi.fn() +window.HTMLMediaElement.prototype.play = vi.fn() +window.HTMLMediaElement.prototype.pause = vi.fn() diff --git a/resources/assets/js/components/album/__snapshots__/AlbumTrackListItem.spec.ts.snap b/resources/assets/js/components/album/__snapshots__/AlbumTrackListItem.spec.ts.snap deleted file mode 100644 index b450b084..00000000 --- a/resources/assets/js/components/album/__snapshots__/AlbumTrackListItem.spec.ts.snap +++ /dev/null @@ -1,7 +0,0 @@ -// Vitest Snapshot v1 - -exports[`renders 1`] = ` -
Fahrstuhl to Heaven - 00:42 -
-`; diff --git a/resources/assets/js/components/layout/app-footer/__snapshots__/FooterExtraControls.spec.ts.snap b/resources/assets/js/components/layout/app-footer/__snapshots__/FooterExtraControls.spec.ts.snap index 9c7c9fb6..2016af6e 100644 --- a/resources/assets/js/components/layout/app-footer/__snapshots__/FooterExtraControls.spec.ts.snap +++ b/resources/assets/js/components/layout/app-footer/__snapshots__/FooterExtraControls.spec.ts.snap @@ -5,7 +5,17 @@ exports[`renders 1`] = `
+ Mute
`; diff --git a/resources/assets/js/components/meta/__snapshots__/AboutKoelModal.spec.ts.snap b/resources/assets/js/components/meta/__snapshots__/AboutKoelModal.spec.ts.snap index a1a3e540..40f30df9 100644 --- a/resources/assets/js/components/meta/__snapshots__/AboutKoelModal.spec.ts.snap +++ b/resources/assets/js/components/meta/__snapshots__/AboutKoelModal.spec.ts.snap @@ -3,7 +3,7 @@ exports[`renders 1`] = `
-

About Koel

+

About Koel

diff --git a/resources/assets/js/components/screens/__snapshots__/AlbumScreen.spec.ts.snap b/resources/assets/js/components/screens/__snapshots__/AlbumScreen.spec.ts.snap index c0f015b4..df997060 100644 --- a/resources/assets/js/components/screens/__snapshots__/AlbumScreen.spec.ts.snap +++ b/resources/assets/js/components/screens/__snapshots__/AlbumScreen.spec.ts.snap @@ -2,12 +2,14 @@ exports[`renders 1`] = `
-
- -
-

Led Zeppelin IV - -

Led Zeppelin10 songs26:43Info Download All +
diff --git a/resources/assets/js/components/screens/__snapshots__/AllSongsScreen.spec.ts.snap b/resources/assets/js/components/screens/__snapshots__/AllSongsScreen.spec.ts.snap index 780329a3..9132149b 100644 --- a/resources/assets/js/components/screens/__snapshots__/AllSongsScreen.spec.ts.snap +++ b/resources/assets/js/components/screens/__snapshots__/AllSongsScreen.spec.ts.snap @@ -31,3 +31,35 @@ exports[`renders 1`] = `

`; + +exports[`renders 2`] = ` +
+
+
+
+
+
+
+

All Songs + +

420 songs34:17:36 +
+
+ +
+
+

+
+`; diff --git a/resources/assets/js/components/screens/__snapshots__/ArtistScreen.spec.ts.snap b/resources/assets/js/components/screens/__snapshots__/ArtistScreen.spec.ts.snap index 9476b7e3..f2fa411f 100644 --- a/resources/assets/js/components/screens/__snapshots__/ArtistScreen.spec.ts.snap +++ b/resources/assets/js/components/screens/__snapshots__/ArtistScreen.spec.ts.snap @@ -2,12 +2,14 @@ exports[`renders 1`] = `
-
- -
-

Led Zeppelin - -

12 albums53 songs11:16:43Info Download All +
diff --git a/resources/assets/js/components/screens/__snapshots__/SettingsScreen.spec.ts.snap b/resources/assets/js/components/screens/__snapshots__/SettingsScreen.spec.ts.snap index 344d90bc..93376d28 100644 --- a/resources/assets/js/components/screens/__snapshots__/SettingsScreen.spec.ts.snap +++ b/resources/assets/js/components/screens/__snapshots__/SettingsScreen.spec.ts.snap @@ -2,10 +2,12 @@ exports[`renders 1`] = `
-
+
-
-

Settings

+
+
+

Settings

+
diff --git a/resources/assets/js/components/song/__snapshots__/SongEditForm.spec.ts.snap b/resources/assets/js/components/song/__snapshots__/SongEditForm.spec.ts.snap index 7f4cefd8..3989007c 100644 --- a/resources/assets/js/components/song/__snapshots__/SongEditForm.spec.ts.snap +++ b/resources/assets/js/components/song/__snapshots__/SongEditForm.spec.ts.snap @@ -10,18 +10,18 @@ exports[`edits a single song 1`] = `

IV

-
+
-
-
-
-
+
+
+
+
-
-
+
+
@@ -29,7 +29,7 @@ exports[`edits a single song 1`] = `
-
+ @@ -45,26 +45,26 @@ exports[`edits multiple songs 1`] = `

Mixed Albums

-
+
-
-
-
+
+
+
-
-
+
+
-
+ diff --git a/resources/assets/js/components/ui/upload/__snapshots__/UploadItem.spec.ts.snap b/resources/assets/js/components/ui/upload/__snapshots__/UploadItem.spec.ts.snap index 6d347533..412788b1 100644 --- a/resources/assets/js/components/ui/upload/__snapshots__/UploadItem.spec.ts.snap +++ b/resources/assets/js/components/ui/upload/__snapshots__/UploadItem.spec.ts.snap @@ -1,3 +1,3 @@ // Vitest Snapshot v1 -exports[`renders 1`] = `
Sample Track
`; +exports[`renders 1`] = `
Sample Track
`;