Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update XPath for getListViewBlocks so that the span can be any nested…
… descendent of the anchor tag instead of an immediate child
  • Loading branch information
andrewserong committed Jul 11, 2022
commit ddf9e6441a6dc16e4e37b221f0e33e4a27cf3060
2 changes: 1 addition & 1 deletion packages/e2e-test-utils/src/get-list-view-blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
*/
export async function getListViewBlocks( blockLabel ) {
return page.$x(
`//table[contains(@aria-label,'Block navigation structure')]//a[span[text()='${ blockLabel }']]`
`//table[contains(@aria-label,'Block navigation structure')]//a//span[text()='${ blockLabel }']`
);
}