From e659de8a8b46db889ef58ec370a665bbe1676a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ella=20van=C2=A0Durpe?= Date: Fri, 5 Nov 2021 17:20:25 +0200 Subject: [PATCH] Add specificity for placeholderUpload --- packages/e2e-tests/specs/editor/blocks/gallery.test.js | 2 +- packages/e2e-tests/specs/editor/blocks/image.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/e2e-tests/specs/editor/blocks/gallery.test.js b/packages/e2e-tests/specs/editor/blocks/gallery.test.js index 43a277412135fa..91190b338b0e9d 100644 --- a/packages/e2e-tests/specs/editor/blocks/gallery.test.js +++ b/packages/e2e-tests/specs/editor/blocks/gallery.test.js @@ -19,7 +19,7 @@ import { async function placeholderUpload() { const input = await page.waitForFunction( () => document - .querySelector( '.wp-block-editor-placeholder' ) + .querySelector( '.wp-block-gallery .wp-block-editor-placeholder' ) ?.shadowRoot.querySelector( 'input[type="file"]' ) ); return upload( input ); diff --git a/packages/e2e-tests/specs/editor/blocks/image.test.js b/packages/e2e-tests/specs/editor/blocks/image.test.js index 02c121cfad097d..8530ce96309520 100644 --- a/packages/e2e-tests/specs/editor/blocks/image.test.js +++ b/packages/e2e-tests/specs/editor/blocks/image.test.js @@ -23,7 +23,7 @@ import { async function placeholderUpload() { const input = await page.waitForFunction( () => document - .querySelector( '.wp-block-editor-placeholder' ) + .querySelector( '.wp-block-image .wp-block-editor-placeholder' ) ?.shadowRoot.querySelector( 'input[type="file"]' ) ); return upload( input );