Skip to content

Commit

Permalink
find heart components
Browse files Browse the repository at this point in the history
  • Loading branch information
afrojas committed Nov 17, 2022
1 parent 180a24a commit 1f4c789
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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"}"],
Expand Down Expand Up @@ -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"}")
`,
}),
],
Expand Down

0 comments on commit 1f4c789

Please sign in to comment.