Skip to content

Commit

Permalink
e2e(datahub): Add e2e test for data distribution priority in data view (
Browse files Browse the repository at this point in the history
#624)

* e2e(datahub): Add e2e test for data distribution priority in data view

* e2e(datahub): changed one record to have an unordered list of distributions
  • Loading branch information
Angi-Kinas authored Sep 19, 2023
1 parent 7a2367a commit 353be82
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,28 @@ describe('dataset pages', () => {
})
})
})

describe('record with file distributions', () => {
beforeEach(() => {
cy.visit('/dataset/n_tri_lill_inondable_s_059')
cy.get('gn-ui-record-metadata')
.find('[id="preview"]')
.first()
.as('prevSection')
cy.get('@prevSection')
.find('.mat-mdc-tab-labels')
.children('div')
.eq(1)
.click()
})

it('should display the distributions by priority', () => {
cy.get('@prevSection')
.find('gn-ui-dropdown-selector')
.last()
.find('select')
.children('option')
.then((options) => options.toArray().map((el) => el.text))
.should('deep.eq', ['csv (csv)', 'json (json)', 'geojson (geojson)'])
})
})
Binary file modified support-services/docker-entrypoint-initdb.d/dump
Binary file not shown.

0 comments on commit 353be82

Please sign in to comment.