diff --git a/index.js b/index.js index 338ddd8..142981a 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,8 @@ module.exports = { type: "finder", locatorTemplate: stringTemplates.css` a[id="${"locator"}"], - a:contains("${"locator"}") + a:contains("${"locator"}"), + *[data-heart-component=link]:contains("${"locator"}") `, }), buildCommand({ @@ -24,8 +25,7 @@ module.exports = { textarea[name="${"locator"}"], select[id="${"locator"}"], select[name="${"locator"}"], - label:contains("${"locator"}"), - silly_test:contains("${"locator"}") + label:contains("${"locator"}") `, labelTemplate: stringTemplates.css` input[id="${"id"}"], @@ -53,7 +53,8 @@ module.exports = { input[type=button][title*="${"locator"}"], input[type=button][value*="${"locator"}"], input[type=button][id="${"locator"}"], - *[role=button]:contains("${"locator"}") + *[role=button]:contains("${"locator"}"), + *[data-heart-component=button]:contains("${"locator"}") `, }), ],