From 505b453b89122e1035ed96d77f83f42b0edaaa46 Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Thu, 5 Sep 2024 16:11:38 +0200 Subject: [PATCH] fix(e2e): update tests to test data --- apps/home-e2e/src/e2e/home.cy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/home-e2e/src/e2e/home.cy.ts b/apps/home-e2e/src/e2e/home.cy.ts index a4c15538..3e85d345 100644 --- a/apps/home-e2e/src/e2e/home.cy.ts +++ b/apps/home-e2e/src/e2e/home.cy.ts @@ -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') }) @@ -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') }) })