Skip to content

Commit

Permalink
Update utility function to return the anchor node
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Mar 24, 2022
1 parent 5c97082 commit 8963f3f
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -40,7 +40,7 @@ async function upload( selector ) {

async function getListViewBlocks( blockLabel ) {
return page.$x(
`//table[contains(@aria-label,'Block navigation structure')]//span[contains(@class,'block-editor-list-view-block-select-button__title') and text()='${ blockLabel }']`
`//table[contains(@aria-label,'Block navigation structure')]//a[span[text()='${ blockLabel }']]`
);
}

Expand Down

0 comments on commit 8963f3f

Please sign in to comment.