Skip to content

Commit

Permalink
Fix cypress test checks where listing slug has changed in seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
pbn4 committed Apr 20, 2021
1 parent 27b7423 commit 0a64c5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sites/public/cypress/integration/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("Navigating around the site", () => {

// Check that the URL got re-written with a URL slug
cy.location().should((loc) => {
expect(loc.pathname).to.contain("triton_55_triton_park_lane_foster_city_ca")
expect(loc.pathname).to.contain("triton_2_pref_55_triton_park_lane_foster_city_ca")
})
})
})
Expand All @@ -34,7 +34,7 @@ describe("Navigating around the site", () => {
cy.get("article.listings-row a")
.first()
.then(function ($a) {
cy.visit(`${$a.prop("href")}/the_triton_55_triton_park_lane_foster_city_ca`)
cy.visit(`${$a.prop("href")}/triton_2_pref_55_triton_park_lane_foster_city_ca`)
// Check that the listing page sidebar apply section text is present on the page
cy.contains("Apply Online")
})
Expand Down

0 comments on commit 0a64c5d

Please sign in to comment.