Skip to content

Commit

Permalink
fix smoke test, probably
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Nov 22, 2024
1 parent 038db3d commit 17c108a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cypress/e2e/smoke.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe("passes smoke test", () => {
// default direction was 0 so verify it goes back
cy.contains("Change Direction").click();
cy.url().should("contain", "schedule_direction%5Bdirection_id%5D=0");
} else if(url.includes("schedule_direction%5Bdirection_id%5D=0")) {
} else if (url.includes("schedule_direction%5Bdirection_id%5D=0")) {
// default direction was 1 so verify it goes back
cy.contains("Change Direction").click();
cy.url().should("contain", "schedule_direction%5Bdirection_id%5D=1");
Expand Down Expand Up @@ -188,18 +188,18 @@ describe("passes smoke test", () => {
'input[placeholder="Search for routes, places, information, and more"]'
).type("Charles");
cy.url().should("contain", "query=Charles");
cy.contains("#search-results-container", "Charlestown Ferry");
cy.contains("#search-results-container", "Charles/MGH");
cy.contains("#search-results-container", "Charlestown Navy Yard");
cy.contains("#search-results-container", "Red Blue Connector");
cy.contains("#search-results-container .c-search-result__hit-name", "Charlestown Ferry");
cy.contains("#search-results-container .c-search-result__hit-name", "Charles/MGH");
cy.contains("#search-results-container .c-search-result__hit-name", "Charlestown Navy Yard");
cy.contains("#search-results-container .c-search-result__hit-name", "Red Blue Connector");
cy.get("#facet-label-stops").click(); // show stops and stations only
cy.contains("#search-results-container", "Red Line").should("not.exist");
cy.contains("#search-results-container", "Charlestown Ferry").should(
cy.contains("#search-results-container .c-search-result__hit-name", "Red Line").should("not.exist");
cy.contains("#search-results-container .c-search-result__hit-name", "Charlestown Ferry").should(
"not.exist"
);
cy.contains("#search-results-container", "Charles/MGH");
cy.contains("#search-results-container", "Charlestown Navy Yard");
cy.contains("#search-results-container", "Red Blue Connector").should(
cy.contains("#search-results-container .c-search-result__hit-name", "Charles/MGH");
cy.contains("#search-results-container .c-search-result__hit-name", "Charlestown Navy Yard");
cy.contains("#search-results-container .c-search-result__hit-name", "Red Blue Connector").should(
"not.exist"
);
});
Expand Down

0 comments on commit 17c108a

Please sign in to comment.