Skip to content

Commit

Permalink
Merge pull request #5460 from dfe-analytical-services/EES-5732
Browse files Browse the repository at this point in the history
EES-5732 prevent ui test failures after data replacement
  • Loading branch information
bennettstuart authored Dec 13, 2024
2 parents 7e51403 + 6d53130 commit 3f5ec9d
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ const ReleaseDataUploadsSection = ({
dataFile: DataFile,
{ totalRows, status }: DataFileImportStatus,
) => {
// EES-5732 UI tests related to data replacement sometimes fail
// because of a permission call for the replaced file being called,
// probably caused by the speed of the tests.
// This prevents this happening.
if (status === 'NOT_FOUND') {
return;
}

const permissions = await permissionService.getDataFilePermissions(
releaseId,
dataFile.id,
Expand Down

0 comments on commit 3f5ec9d

Please sign in to comment.