Skip to content

Commit

Permalink
chore: fix test typing
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab committed Jan 30, 2024
1 parent 9c2f37e commit cabbdd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cypress/e2e/category/pois-list.cy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import poisCategory22 from '../../fixtures/teritorio/references/pois/category/22.json'
import { mockSSRAPI } from '../../support/mock'
import type { ApiPois } from '~/lib/apiPois'

import teritorioReferenceAPIFixture from '~/cypress/fixtures/teritorio/references/teritorioReferenceAPIFixture'

Expand All @@ -20,9 +21,10 @@ describe('pois table', () => {
})

it('contain basic table', () => {
if (teritorioReferenceAPIFixture.pois.features[0].properties.editorial?.list_fields?.length) {
const pois = teritorioReferenceAPIFixture.pois as ApiPois
if (pois.features[0].properties.editorial && pois.features[0].properties.editorial.list_fields) {
cy.get('th')
.contains(teritorioReferenceAPIFixture.pois.features[0].properties.editorial.list_fields[0].field as string)
.contains(pois.features[0].properties.editorial.list_fields[0].field as string)
}

cy.get('td')
Expand Down

0 comments on commit cabbdd8

Please sign in to comment.