Skip to content

Commit

Permalink
e2e: print first camp with motto in nuxtPrint.cy.js
Browse files Browse the repository at this point in the history
The new J+S course will be the first entry
of the camps endpoint.
Cypress cannot check null with the contains function,
thus we need to test the print preview with a camp with motto.
  • Loading branch information
BacLuc committed Sep 29, 2024
1 parent 21e38af commit 3384462
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2e/specs/nuxtPrint.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ describe('Nuxt print test', () => {

cy.request(Cypress.env('API_ROOT_URL') + '/camps.jsonhal').then((response) => {
const body = response.body
const campUri = body._links.items[1].href
const camp = body._embedded.items[1]
const camp = body._embedded.items.filter((c) => c.motto)[0]
const campUri = camp._links.self.href

const printConfig = {
language: 'en',
Expand Down

0 comments on commit 3384462

Please sign in to comment.