Skip to content

Commit

Permalink
e2e(search): adapt test to mel components
Browse files Browse the repository at this point in the history
tkohr committed Jan 29, 2024
1 parent 11f8c40 commit 0993423
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/datahub-e2e/src/e2e/search.cy.ts
Original file line number Diff line number Diff line change
@@ -8,10 +8,13 @@ describe('datahub-e2e', () => {
cy.get('gn-ui-results-hits-number').should('contain', 12)
})
it('should display record results in preview cards', () => {
cy.get('gn-ui-results-list')
.find('gn-ui-record-preview-card')
cy.get('mel-datahub-results-list-grid')
.find('mel-datahub-results-card-search')
.eq(0)
.find('h1')
.should('have.text', ' Accroches vélos MEL ')
.should(
'have.text',
' Cartographie des sols agricoles de la plaine du Rhône '
)
})
})

0 comments on commit 0993423

Please sign in to comment.