diff --git a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts index 0a0c695e94..f045c31f22 100644 --- a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts +++ b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts @@ -1,4 +1,5 @@ import 'cypress-real-events' +import path from 'path' describe('dataset pages', () => { beforeEach(() => { @@ -377,12 +378,13 @@ describe('dataset pages', () => { .find('gn-ui-download-item') .first() .click() - cy.exec('ls cypress/downloads').then((result) => { - const fileList = result.stdout.split('\n') + cy.readFile('./cypress/downloads/ows.csv') + // cy.exec('ls cypress/downloads').then((result) => { + // const fileList = result.stdout.split('\n') - const isFileDownloaded = fileList[0] - expect(/\S/.test(isFileDownloaded)).to.be.true - }) + // const isFileDownloaded = fileList[0] + // expect(/\S/.test(isFileDownloaded)).to.be.true + // }) }) it('displays the full list after clicking two times on one filter', () => { cy.get('datahub-record-downloads')