Add image snapshot to outfit saving Cypress test
Just as a simple check that the basic outfit data is looping back around as expected!
This commit is contained in:
parent
437a327b73
commit
3f66dd7244
2 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
Loading…
Reference in a new issue