Add transparency integration test

This commit is contained in:
Jordan Eldredge 2018-06-30 13:38:25 -07:00
parent 572c6dd497
commit 2f0b3ebac4
2 changed files with 10 additions and 0 deletions

View file

@ -24,6 +24,16 @@ it("should render the Topaz skin", async () => {
expect(await page.screenshot()).toMatchImageSnapshot();
});
it("should render a skin that defines transparent regions", async () => {
await page.goto(`http://localhost:8080/#{"disableMarquee":true}`);
expect(page).toUploadFile(
"#webamp-file-input",
"./skins/Green-Dimension-V2.wsz"
);
await new Promise(resolve => setTimeout(resolve, 200));
expect(await page.screenshot()).toMatchImageSnapshot();
});
it("uses the volume spirtes as a fallback when balance spirtes are missing", async () => {
await page.goto(`http://localhost:8080/#{"disableMarquee":true}`);
expect(page).toUploadFile("#webamp-file-input", "./skins/AmigaPPC-dark.wsz");