Skip to content

Commit

Permalink
Fix e2e test for home
Browse files Browse the repository at this point in the history
  • Loading branch information
ronitjadhav committed Jan 24, 2025
1 parent d7d8e1d commit d0905b7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/home-e2e/src/e2e/home.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ describe('home', () => {
cy.get('mel-datahub-carousel')
.find('[title="carousel-arrow-right"]')
.click()
cy.get('mel-datahub-carousel')
.find('[title="carousel-arrow-right"]')
.click()

cy.get('mel-datahub-carousel')
.find('h1')
.eq(2)
.eq(3)
.should('have.text', ' Leitungskataster Fernwärme AEW Energie AG ')
.should('be.visible')
})
Expand All @@ -53,12 +56,12 @@ describe('home', () => {
cy.get('@firstResult').click()
cy.url().should(
'include',
'catalogue/dataset/a3774ef6-809d-4dd1-984f-9254f49cbd0a'
'catalogue/dataset/ed34db28-5dd4-480f-bf29-dc08f0086131'
)
})
it('should create correct url to navigate to search on keyword click', () => {
cy.get('mel-datahub-results-card-last-created')
.eq(1)
.eq(2)
.find('.mel-badge-button-primary')
.first()
.click()
Expand Down

0 comments on commit d0905b7

Please sign in to comment.