Skip to content

Commit

Permalink
test: change target matching text
Browse files Browse the repository at this point in the history
  • Loading branch information
synycboom committed Nov 23, 2022
1 parent 282628d commit 3bdb903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions headless/find_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func newValidRequest(location string, matchType string) headless.FindRequest {
Match: headless.Match{
Type: "xpath",
MatchXPath: &headless.MatchXPath{
Selector: "//text()[contains(.,'match-this-text')]",
Selector: "//text()[contains(.,'Sig:')]",
},
},
}
Expand All @@ -44,7 +44,7 @@ func newValidRequest(location string, matchType string) headless.FindRequest {
Match: headless.Match{
Type: "js",
MatchJS: &headless.MatchJS{
Value: "() => [].filter.call(document.querySelectorAll('*'), (el) => el.textContent.includes('match-this-text'))[0]",
Value: "() => [].filter.call(document.querySelectorAll('*'), (el) => el.textContent.includes('Sig:'))[0]",
},
},
}
Expand Down

0 comments on commit 3bdb903

Please sign in to comment.