Add test for files with slashes

This commit is contained in:
Jordan Eldredge 2020-12-31 11:13:30 -08:00
parent d493aef4c7
commit b6df575a1d
2 changed files with 10 additions and 0 deletions

Binary file not shown.

View file

@ -89,6 +89,16 @@ test("pads empty space in the marquee with the space character", async () => {
expect(await page.screenshot()).toMatchImageSnapshot(snapshotOptions);
});
test("can render skins that have forward slash in filename", async () => {
await page.goto(`${DOMAIN}/#{"disableMarquee":true}`);
await expect(page).toUploadFile(
"#webamp-file-input",
path.join(__dirname, "../../demo/skins/rei_1.wsz")
);
await page.evaluate(() => window.__webamp.skinIsLoaded());
expect(await page.screenshot()).toMatchImageSnapshot(snapshotOptions);
});
test("closing winamp shows the icon", async () => {
await page.goto(`${DOMAIN}/#{"disableMarquee":true}`);
await page.evaluate(() => window.__webamp.skinIsLoaded());