diff --git a/packages/block-library/src/gallery/edit.js b/packages/block-library/src/gallery/edit.js
index 3100a3293e96c4..82fde77229103c 100644
--- a/packages/block-library/src/gallery/edit.js
+++ b/packages/block-library/src/gallery/edit.js
@@ -290,6 +290,7 @@ function GalleryEdit( props ) {
 				linkToText.label
 			),
 			{
+				id: 'gallery-attributes-linkTo',
 				type: 'snackbar',
 			}
 		);
@@ -326,6 +327,7 @@ function GalleryEdit( props ) {
 			? __( 'All gallery images updated to open in new tab' )
 			: __( 'All gallery images updated to not open in new tab' );
 		createSuccessNotice( noticeText, {
+			id: 'gallery-attributes-openInNewTab',
 			type: 'snackbar',
 		} );
 	}
@@ -356,6 +358,7 @@ function GalleryEdit( props ) {
 				imageSize.label
 			),
 			{
+				id: 'gallery-attributes-sizeSlug',
 				type: 'snackbar',
 			}
 		);