Fix pagination mistake in SearchPanel e2e

Oops, I'm not sure how I made this mistake, but the item I had listed in this test was actually on page 1, not page 2! So the test was passing without actually waiting for the second page to load 😅
This commit is contained in:
Emi Matchu 2021-02-07 00:31:15 -08:00
parent 170544128e
commit 107696783e

View file

@ -4,7 +4,7 @@ const networkTimeout = { timeout: 6000 };
describe("WardrobePage: SearchPanel", () => {
// NOTE: This test depends on specific search results on certain pages, and
// could break if a lot of matching items are added to the site!
it("Searches by keyword", () => {
it.only("Searches by keyword", () => {
cy.visit("/outfits/new");
// The first page should contain this item.
@ -16,7 +16,7 @@ describe("WardrobePage: SearchPanel", () => {
// And the second page should contain this item.
cy.get("[data-test-id=search-panel-scroll-container]").scrollTo("bottom");
cy.contains(
"Dyeworks Green: Winter Poinsettia Staff",
"Dyeworks Purple: Winter Rose Foreground",
networkTimeout
).should("exist");
});