From 252f5b1b283cf92050f53c592a5ea48e954ae2e4 Mon Sep 17 00:00:00 2001 From: Ruslan Hrabovyi Date: Sun, 21 Jan 2024 22:55:00 +0100 Subject: [PATCH] avoid unnecessary change in the clickOnText --- addon/src/properties/click-on-text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/src/properties/click-on-text.js b/addon/src/properties/click-on-text.js index 5a224e52..3988d5af 100644 --- a/addon/src/properties/click-on-text.js +++ b/addon/src/properties/click-on-text.js @@ -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);