Skip to content

Commit

Permalink
Add specificity for placeholderUpload
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 5, 2021
1 parent 261e232 commit e659de8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/editor/blocks/gallery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e-tests/specs/editor/blocks/image.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit e659de8

Please sign in to comment.