Add regression test for case insensitive filename collision

This commit is contained in:
Jordan Eldredge 2020-11-12 11:41:04 -08:00
parent 5b7057e1d4
commit 610226f543
3 changed files with 10 additions and 0 deletions

Binary file not shown.

View file

@ -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(