Skip to content

Commit

Permalink
avoid unnecessary change in the clickOnText
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0gr committed Jan 21, 2024
1 parent 72f4600 commit 252f5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/src/properties/click-on-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function clickOnText(selector, userOptions = {}) {
const childSelector = `${selector || ''} *`;
const byTextSelector = findMany(this, childSelector, options).length
? childSelector
: selector ?? '';
: selector;

const element = findOne(this, byTextSelector, options);

Expand Down

0 comments on commit 252f5b1

Please sign in to comment.