From d1ff31ad87ea11d95164477b95ed0baec45f0c01 Mon Sep 17 00:00:00 2001 From: MellyGray Date: Wed, 30 Aug 2023 17:18:53 +0200 Subject: [PATCH] fix(e2e action): restore unstable dataverse image tag --- .github/workflows/test.yml | 2 +- tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2ef62b4d..001a50659 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ name: test on: push env: - E2E_DATAVERSE_IMAGE_TAG: 9692-files-api-extension-display-data + E2E_DATAVERSE_IMAGE_TAG: unstable jobs: e2e: diff --git a/tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx b/tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx index d99119a19..cbd76c35a 100644 --- a/tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx +++ b/tests/e2e-integration/e2e/sections/dataset/Dataset.spec.tsx @@ -68,6 +68,7 @@ describe('Dataset', () => { cy.wrap(DatasetHelper.create().then((dataset) => DatasetHelper.publish(dataset.persistentId))) .its('persistentId') .then((persistentId: string) => { + cy.wait(1500) // Wait for the dataset to be published cy.visit(`/spa/datasets?persistentId=${persistentId}&version=2.0`) cy.fixture('dataset-finch1.json').then((dataset: Dataset) => { @@ -201,6 +202,7 @@ describe('Dataset', () => { ) .its('persistentId') .then((persistentId: string) => { + cy.wait(1500) // Wait for the dataset to be published cy.wrap(TestsUtils.logout()) cy.visit(`/spa/datasets?persistentId=${persistentId}`) @@ -241,6 +243,8 @@ describe('Dataset', () => { ) .its('persistentId') .then((persistentId: string) => { + cy.wait(1500) // Wait for the dataset to be published + cy.wrap(TestsUtils.logout()) cy.visit(`/spa/datasets?persistentId=${persistentId}`)