Skip to content

Commit

Permalink
wip: fix the broken browse test
Browse files Browse the repository at this point in the history
we're importing the waresFixture so that we can,
access the new request page as an unauthorized user.

- ref: #360

Co-authored-by: alisha evans <[email protected]>
  • Loading branch information
DaltonMcauliffe and alishaevn committed Feb 5, 2024
1 parent 979b719 commit d924336
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/e2e/browse.cy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import waresFixture from '../fixtures/services/wares.json'

describe('Browsing', () => {
let wares
let loading
Expand Down Expand Up @@ -57,6 +59,8 @@ describe('Browsing', () => {

context('error while making a request to the api', () => {
before(() => {
let ware = waresFixture['ware_refs'][0]
cy.visit(`/requests/new/${ware.slug}?id=${ware.id}`)
loading = false
error = true
})
Expand Down

0 comments on commit d924336

Please sign in to comment.