mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-23 01:57:29 +00:00
Add test for files with slashes
This commit is contained in:
parent
d493aef4c7
commit
b6df575a1d
2 changed files with 10 additions and 0 deletions
BIN
packages/webamp/demo/skins/rei_1.wsz
Normal file
BIN
packages/webamp/demo/skins/rei_1.wsz
Normal file
Binary file not shown.
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue