From 619e06942ff5e46dbbad19c5a14227135c9fa406 Mon Sep 17 00:00:00 2001 From: tking Date: Wed, 20 Mar 2024 08:02:54 +0000 Subject: [PATCH] Use correct 'id' value to unhide success banner --- npm/src/checks/index.ts | 2 +- npm/test/update-check-progress.test.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/npm/src/checks/index.ts b/npm/src/checks/index.ts index b3e0b2d4f..e06d3b0e0 100644 --- a/npm/src/checks/index.ts +++ b/npm/src/checks/index.ts @@ -46,7 +46,7 @@ export class Checks { ) if (checksCompleted) { clearInterval(intervalId) - displayChecksCompletedBanner("draft-metadata-check") + displayChecksCompletedBanner("draft-metadata-checks") } } else { clearInterval(intervalId) diff --git a/npm/test/update-check-progress.test.ts b/npm/test/update-check-progress.test.ts index dacfe30d0..092bc489b 100644 --- a/npm/test/update-check-progress.test.ts +++ b/npm/test/update-check-progress.test.ts @@ -137,8 +137,8 @@ test("'updateFileCheckProgress' shows a standard user, the notification banner a }) test("'updateDraftMetadataValidationProgress' shows a standard user, the notification banner and an enabled continue button if all checks are 'completed'", async () => { - document.body.innerHTML = ` - ` + document.body.innerHTML = ` + ` const consignmentId = "e25438db-4bfb-41c9-8fff-6f2e4cca6421" mockGetCheckProgress.getConsignmentId.mockImplementation( () => consignmentId @@ -160,8 +160,8 @@ test("'updateDraftMetadataValidationProgress' shows a standard user, the notific }) test("'updateDraftMetadataValidationProgress' shows a standard user, the notification banner and an enabled continue button if all checks are 'completedWithIssues'", async () => { - document.body.innerHTML = ` - ` + document.body.innerHTML = ` + ` const consignmentId = "e25438db-4bfb-41c9-8fff-6f2e4cca6421" mockGetCheckProgress.getConsignmentId.mockImplementation( () => consignmentId