Skip to content

Commit

Permalink
Update the location of the test skin in integration test to work with…
Browse files Browse the repository at this point in the history
… Parcel
  • Loading branch information
captbaritone committed Jan 20, 2023
1 parent 46a809b commit c9a8651
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/webamp/js/__tests__/baseline.integration-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ test("can 'pose' for a screenshot", async () => {
expect(await page.screenshot()).toMatchImageSnapshot(snapshotOptions);
});

// *************** IMPORTANT ***************
// If this test starts to fail, check that the cache-bust location of the skin has not changed.
test("can load a skin via the query params", async () => {
await page.goto(
// If this test starts to fail, check that the cache-bust location of the skin has not changed.
`${DOMAIN}/?skinUrl=/skins/MacOSXAqua1-5-88dbd4e043795c98625462a908a2d965.wsz#{"disableMarquee":true}`
`${DOMAIN}/?skinUrl=/MacOSXAqua1-5.698dd4ab.wsz#{"disableMarquee":true}`
);
await page.evaluate(
() => document.getElementsByClassName("loaded-icon").length > 0
Expand Down

0 comments on commit c9a8651

Please sign in to comment.