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:
parent
170544128e
commit
107696783e
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ const networkTimeout = { timeout: 6000 };
|
||||||
describe("WardrobePage: SearchPanel", () => {
|
describe("WardrobePage: SearchPanel", () => {
|
||||||
// NOTE: This test depends on specific search results on certain pages, and
|
// 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!
|
// 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");
|
cy.visit("/outfits/new");
|
||||||
|
|
||||||
// The first page should contain this item.
|
// The first page should contain this item.
|
||||||
|
@ -16,7 +16,7 @@ describe("WardrobePage: SearchPanel", () => {
|
||||||
// And the second page should contain this item.
|
// And the second page should contain this item.
|
||||||
cy.get("[data-test-id=search-panel-scroll-container]").scrollTo("bottom");
|
cy.get("[data-test-id=search-panel-scroll-container]").scrollTo("bottom");
|
||||||
cy.contains(
|
cy.contains(
|
||||||
"Dyeworks Green: Winter Poinsettia Staff",
|
"Dyeworks Purple: Winter Rose Foreground",
|
||||||
networkTimeout
|
networkTimeout
|
||||||
).should("exist");
|
).should("exist");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue