Skip to content

Commit

Permalink
feat: fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jul 4, 2024
1 parent f2a7369 commit 7a9ca71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions apps/datahub-e2e/src/e2e/datasets.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand All @@ -182,7 +182,7 @@ describe('datasets', () => {
.map((dropdown) => dropdown.getAttribute('data-cy-field'))
)
.should('eql', [
'publisher',
'organization',
'format',
'publicationYear',
'topic',
Expand All @@ -192,6 +192,8 @@ describe('datasets', () => {
'keyword',
'resourceType',
'representationType',
'producer',
'publisher',
])
cy.screenshot({ capture: 'viewport' })
})
Expand Down
2 changes: 1 addition & 1 deletion apps/datahub-e2e/src/fixtures/config-with-all-filters.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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']

0 comments on commit 7a9ca71

Please sign in to comment.