From a94669698267930cd88b943fb3b77113f24419b4 Mon Sep 17 00:00:00 2001 From: Camille Moinier Date: Thu, 7 Dec 2023 16:53:48 +0100 Subject: [PATCH] fix(e2e): fix e2e test --- apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts index 0a0c695e94..7261baacd8 100644 --- a/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts +++ b/apps/datahub-e2e/src/e2e/datasetDetailPage.cy.ts @@ -377,12 +377,15 @@ describe('dataset pages', () => { .find('gn-ui-download-item') .first() .click() - cy.exec('ls cypress/downloads').then((result) => { - const fileList = result.stdout.split('\n') + // eslint-disable-next-line cypress/no-unnecessary-waiting + cy.wait(3000) + 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')