Skip to content

Commit

Permalink
fix(e2e): update tests to test data
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohr committed Sep 5, 2024
1 parent b484979 commit 505b453
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/home-e2e/src/e2e/home.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('home', () => {
.eq(2)
.should(
'have.text',
' Cartographie des sols agricoles de la plaine du Rhône '
' Leitungskataster Fernwärme AEW Energie AG '
)
.should('be.visible')
})
Expand All @@ -56,11 +56,11 @@ describe('home', () => {
cy.get('@firstResult').click()
cy.url().should(
'include',
'catalogue/dataset/9e1ea778-d0ce-4b49-90b7-37bc0e448300'
'catalogue/dataset/a3774ef6-809d-4dd1-984f-9254f49cbd0a'
)
})
it('should create correct url to navigate to search on keyword click', () => {
cy.get('@firstResult').find('.mel-badge-button-primary').first().click()
cy.get('mel-datahub-results-card-last-created').eq(1).find('.mel-badge-button-primary').first().click()
cy.url().should('include', 'catalogue/search?q=administration')
})
})
Expand Down

0 comments on commit 505b453

Please sign in to comment.