diff --git a/web/src/lib/components/AcoustIDCard.test.ts b/web/src/lib/components/AcoustIDCard.test.ts index b4938eac..45c7b610 100644 --- a/web/src/lib/components/AcoustIDCard.test.ts +++ b/web/src/lib/components/AcoustIDCard.test.ts @@ -63,7 +63,7 @@ describe("AcoustIDCard", () => { await renderCard(); const key = screen.getByLabelText(/api key/i) as HTMLInputElement; expect(key.value).toBe(""); - expect(key.placeholder).toBe("Stored"); + expect(key.placeholder).toBe("Key saved"); expect(saveButton()).toHaveProperty("disabled", true); await fireEvent.input( diff --git a/web/src/routes/admin/library/library.test.ts b/web/src/routes/admin/library/library.test.ts index 13627c12..d22fdd9c 100644 --- a/web/src/routes/admin/library/library.test.ts +++ b/web/src/routes/admin/library/library.test.ts @@ -59,7 +59,8 @@ const squash = (el: Element) => el.textContent?.replace(/\s+/g, ' ').trim(); describe('Admin › Library', () => { test('lists the folders Minstrel reads', () => { setup(); - expect(squash(screen.getByTestId('library-folders'))).toBe('/music /more-music'); + const folders = [...screen.getByTestId('library-folders').children].map((el) => el.textContent); + expect(folders).toEqual(['/music', '/more-music']); }); test('before any scan it says so, with no job rows', () => {