From 6174d31147cd943a0d5b53f50efaec44dc913a56 Mon Sep 17 00:00:00 2001 From: Ricardo Artemio Morales Date: Tue, 30 Jan 2024 14:09:47 -0500 Subject: [PATCH 1/2] Update label; update active status when lightbox is enabled --- .../src/components/url-popover/image-url-input-ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-editor/src/components/url-popover/image-url-input-ui.js b/packages/block-editor/src/components/url-popover/image-url-input-ui.js index f6946b2c8e65d2..0eaea3149197b9 100644 --- a/packages/block-editor/src/components/url-popover/image-url-input-ui.js +++ b/packages/block-editor/src/components/url-popover/image-url-input-ui.js @@ -241,11 +241,11 @@ const ImageURLInputUI = ( { { isOpen && ( Date: Wed, 31 Jan 2024 11:20:26 +0100 Subject: [PATCH 2/2] Update e2e with label change --- test/e2e/specs/editor/blocks/image.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/specs/editor/blocks/image.spec.js b/test/e2e/specs/editor/blocks/image.spec.js index d47f8f3490edcc..7de37806fd0126 100644 --- a/test/e2e/specs/editor/blocks/image.spec.js +++ b/test/e2e/specs/editor/blocks/image.spec.js @@ -670,7 +670,7 @@ test.describe( 'Image', () => { imageBlock.locator( 'data-testid=form-file-upload-input' ) ); - await page.getByLabel( 'Block tools' ).getByLabel( 'Add link' ).click(); + await page.getByLabel( 'Block tools' ).getByLabel( 'Link' ).click(); // This form lacks distinguishing qualities other than the // class name, so we use page.locator() instead of page.getByRole()