From 7a9ca716b355988a8a8aa71f17d20ad035004780 Mon Sep 17 00:00:00 2001 From: Camille Moinier Date: Thu, 4 Jul 2024 12:40:03 +0200 Subject: [PATCH] feat: fix e2e tests --- apps/datahub-e2e/src/e2e/datasets.cy.ts | 6 ++++-- apps/datahub-e2e/src/fixtures/config-with-all-filters.toml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/datahub-e2e/src/e2e/datasets.cy.ts b/apps/datahub-e2e/src/e2e/datasets.cy.ts index cb4c40e487..c19ff052f7 100644 --- a/apps/datahub-e2e/src/e2e/datasets.cy.ts +++ b/apps/datahub-e2e/src/e2e/datasets.cy.ts @@ -173,7 +173,7 @@ describe('datasets', () => { .click() }) it('should display all filters', () => { - cy.get('@filters').filter(':visible').should('have.length', 10) + cy.get('@filters').filter(':visible').should('have.length', 12) cy.get('@filters') .children() .then(($dropdowns) => @@ -182,7 +182,7 @@ describe('datasets', () => { .map((dropdown) => dropdown.getAttribute('data-cy-field')) ) .should('eql', [ - 'publisher', + 'organization', 'format', 'publicationYear', 'topic', @@ -192,6 +192,8 @@ describe('datasets', () => { 'keyword', 'resourceType', 'representationType', + 'producer', + 'publisher', ]) cy.screenshot({ capture: 'viewport' }) }) diff --git a/apps/datahub-e2e/src/fixtures/config-with-all-filters.toml b/apps/datahub-e2e/src/fixtures/config-with-all-filters.toml index 2fa889d3f5..70c1b400c4 100644 --- a/apps/datahub-e2e/src/fixtures/config-with-all-filters.toml +++ b/apps/datahub-e2e/src/fixtures/config-with-all-filters.toml @@ -9,4 +9,4 @@ main_color = "#212029" # All-purpose text color background_color = "#fdfbff" [search] -advanced_filters = ['publisher', 'format', 'publicationYear', 'topic', 'isSpatial', 'license', 'inspireKeyword', 'keyword', 'resourceType', 'representationType'] +advanced_filters = ['organization', 'format', 'publicationYear', 'topic', 'isSpatial', 'license', 'inspireKeyword', 'keyword', 'resourceType', 'representationType', 'producer', 'publisher']