diff --git a/cypress/integration/WardrobePage/Outfit saving.spec.js b/cypress/integration/WardrobePage/Outfit saving.spec.js index faa2ec40..07771994 100644 --- a/cypress/integration/WardrobePage/Outfit saving.spec.js +++ b/cypress/integration/WardrobePage/Outfit saving.spec.js @@ -14,11 +14,12 @@ describe("WardrobePage: Outfit saving", () => { page.getSaveOutfitButton().click().should("have.attr", "data-loading"); // Wait for the outfit to stop saving, and check that it redirected and - // still shows the correct outfit name. + // still shows the correct outfit preview and name. page .getSaveOutfitButton({ timeout: 12000 }) .should("not.have.attr", "data-loading"); cy.location("pathname").should("match", /^\/outfits\/[0-9]+$/); page.getOutfitName().should("have.text", outfitName); + page.getOutfitPreview().toMatchImageSnapshot(); }); }); diff --git a/cypress/integration/WardrobePage/__image_snapshots__/WardrobePage Outfit saving Saves a basic outfit #0.png b/cypress/integration/WardrobePage/__image_snapshots__/WardrobePage Outfit saving Saves a basic outfit #0.png new file mode 100644 index 00000000..bbed0000 Binary files /dev/null and b/cypress/integration/WardrobePage/__image_snapshots__/WardrobePage Outfit saving Saves a basic outfit #0.png differ