Skip to content

Commit

Permalink
fix: use different dataset for similar datasets
Browse files Browse the repository at this point in the history
suggestions for e2e
  • Loading branch information
Angi-Kinas committed Feb 11, 2025
1 parent d033b8d commit 4c26e6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,13 +613,13 @@ describe('dataset pages', () => {
})
describe('related records', () => {
beforeEach(() => {
cy.visit('/dataset/6d0bfdf4-4e94-48c6-9740-3f9facfd453c')
cy.visit('/dataset/a3774ef6-809d-4dd1-984f-9254f49cbd0a')
})
it('should display the related records', () => {
cy.get('#related-records')
.find('datahub-record-related-records')
.find('gn-ui-related-record-card')
.should('have.length', 3)
.should('have.length.gt', 0)
})
it('should display a similar related record', () => {
cy.get('#related-records')
Expand All @@ -629,7 +629,7 @@ describe('dataset pages', () => {
.find('h4')
.should(
'have.text',
` SCoT (Schéma de cohérence territoriale) en région Hauts-de-France `
` Metadata for E2E testing purpose. (this title is too long and should be cut, this title is too long and should be cut, this title is too long and should be cut, this title is too long and should be cut, this title is too long and should be cut) `
)
})
it('goes to dataset on click', () => {
Expand Down

0 comments on commit 4c26e6d

Please sign in to comment.