From 107696783e9c767265cff0efea2068cee45d0f71 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 7 Feb 2021 00:31:15 -0800 Subject: [PATCH] Fix pagination mistake in SearchPanel e2e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 😅 --- cypress/integration/WardrobePage/SearchPanel.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/WardrobePage/SearchPanel.spec.js b/cypress/integration/WardrobePage/SearchPanel.spec.js index f353beb..47abe22 100644 --- a/cypress/integration/WardrobePage/SearchPanel.spec.js +++ b/cypress/integration/WardrobePage/SearchPanel.spec.js @@ -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"); });