Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading