Skip to content

Commit

Permalink
Fix locator for result text
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Jun 23, 2023
1 parent e7a0a9d commit 890dde8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/specs/editor/blocks/navigation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,9 @@ class LinkControl {
await expect( result ).toBeVisible();

return result
.locator( '.block-editor-link-control__search-item-title' ) // this is the only way to get the label text without the URL.
.locator(
'.components-menu-item__info-wrapper .components-menu-item__item'
) // this is the only way to get the label text without the URL.
.innerText();
}
}

0 comments on commit 890dde8

Please sign in to comment.