Skip to content

Commit

Permalink
fix: datahub tests with new dump
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Oct 20, 2023
1 parent 1ba5443 commit d3048bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion apps/datahub-e2e/src/e2e/datasets.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ describe('datasets', () => {
cy.get('@optionsLabel').should('eql', [
'Agence wallonne du Patrimoine (SPW - Territoire, Logement, Patrimoine, Énergie - Agence wallonne du Patrimoine) (1)',
'atmo Hauts-de-France (1)',
'Barbie Inc. (1)',
'Bundesamt für Raumentwicklung (1)',
"Canton du Valais - Service de l'environnement (SEN) - Protection des sols (1)",
'Cellule informatique et géomatique (SPW - Intérieur et Action sociale - Direction fonctionnelle et d’appui) (1)',
Expand All @@ -279,7 +280,7 @@ describe('datasets', () => {
'Géo2France (1)',
"Helpdesk carto du SPW (SPW - Secrétariat général - SPW Digital - Département de la Géomatique - Direction de l'Intégration des géodonnées) (2)",
'Métropole Européenne de Lille (1)',
'Région Hauts-de-France (2)',
'Région Hauts-de-France (1)',
'Service public de Wallonie (SPW) (2)',
"Société Publique de Gestion de l'Eau (SPGE) (1)",
])
Expand Down
10 changes: 5 additions & 5 deletions apps/datahub-e2e/src/e2e/organizations.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ describe('organizations', () => {
})
it('should display organization information', () => {
cy.get('@organizationsName')
.eq(2)
.eq(3)
.invoke('text')
.should('contain', 'Bundesamt für Raumentwicklung')
cy.get('@organizationsDesc')
.eq(2)
.eq(3)
.invoke('text')
.should('contain', 'Bundesamt für Raumentwicklung')
cy.get('@organizationsRecordsCount')
.eq(2)
.eq(3)
.invoke('text')
.should('contain', '1')
})
it('should display an actual logo', () => {
cy.get('@organizations')
.eq(8)
.eq(9)
.find('img')
.should('have.attr', 'src')
.and('contain', 'G%C3%A9o2France-4-3_decoupe.png')
Expand Down Expand Up @@ -124,7 +124,7 @@ describe('organizations', () => {
it('should go to next page with arrow', () => {
cy.then(() => {
cy.get('@pagination').find('[data-cy=next-page]').click()
cy.get('@organizations').should('have.length', 2)
cy.get('@organizations').should('have.length', 3)
})
})
it('should go back to the first page with arrow', () => {
Expand Down

0 comments on commit d3048bd

Please sign in to comment.