use getByLabel

This commit is contained in:
pythongosssss
2026-03-28 12:57:14 -07:00
parent d9096b269e
commit adf9b1df2f

View File

@@ -32,7 +32,7 @@ export class BuilderSelectHelper {
*/
getPreviewWidgetMenu(ariaLabel: string): Locator {
return this.page
.locator(`[aria-label="${ariaLabel}"]`)
.getByLabel(ariaLabel, { exact: true })
.getByTestId(TestIds.builder.widgetActionsMenu)
}