Clear test datasets before integration test #294
Labels
pm.GREI-d-2.7.1
NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflows
pm.GREI-d-2.7.2
NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows
Size: 10
A percentage of a sprint. 7 hours.
When the integration tests cause a build up of datasets in Dataverse, then calling destroyAll() before the "gets the total dataset count" test in DatasetJSDataverseRepository.spec.ts causes an optimistic lock exception in Dataverse.
To avoid having a large number of datasets to delete all at once, we can add destroyAll() to the beforeEach method of integration tests.
Here is an example of the test failure:
https://github.com/IQSS/dataverse-frontend/actions/runs/7653145563/job/20968488247
The text was updated successfully, but these errors were encountered: