diff --git a/packages/webamp/demo/skins/My_Funny_Valentine.wsz b/packages/webamp/demo/skins/My_Funny_Valentine.wsz new file mode 100644 index 00000000..4c09163a Binary files /dev/null and b/packages/webamp/demo/skins/My_Funny_Valentine.wsz differ diff --git a/packages/webamp/js/__tests__/__image_snapshots__/baseline-integration-test-js-should-render-a-skin-that-has-files-that-only-differ-by-case-main-bmp-and-main-bmp-1-snap.png b/packages/webamp/js/__tests__/__image_snapshots__/baseline-integration-test-js-should-render-a-skin-that-has-files-that-only-differ-by-case-main-bmp-and-main-bmp-1-snap.png new file mode 100644 index 00000000..fbc202b1 Binary files /dev/null and b/packages/webamp/js/__tests__/__image_snapshots__/baseline-integration-test-js-should-render-a-skin-that-has-files-that-only-differ-by-case-main-bmp-and-main-bmp-1-snap.png differ diff --git a/packages/webamp/js/__tests__/baseline.integration-test.js b/packages/webamp/js/__tests__/baseline.integration-test.js index 5a35e820..14308507 100644 --- a/packages/webamp/js/__tests__/baseline.integration-test.js +++ b/packages/webamp/js/__tests__/baseline.integration-test.js @@ -55,6 +55,16 @@ test("should render a skin that defines transparent regions", async () => { expect(await page.screenshot()).toMatchImageSnapshot(snapshotOptions); }); +test("should render a skin that has files that only differ by case: main.bmp and main.BMP", async () => { + await page.goto(`${DOMAIN}/#{"disableMarquee":true}`); + await expect(page).toUploadFile( + "#webamp-file-input", + path.join(__dirname, "../../demo/skins/My_Funny_Valentine.wsz") + ); + await page.evaluate(() => window.__webamp.skinIsLoaded()); + expect(await page.screenshot()).toMatchImageSnapshot(snapshotOptions); +}); + test("uses the volume spirtes as a fallback when balance spirtes are missing", async () => { await page.goto(`${DOMAIN}/#{"disableMarquee":true}`); await expect(page).toUploadFile(