@bucky24/jsbehave 0.12.4 → 0.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +4 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -210,12 +210,12 @@ async function waitForText([ selector, text ]) {
|
|
|
210
210
|
const sel = getSelector(selector);
|
|
211
211
|
const elem = await driver().findElement(sel);
|
|
212
212
|
text = getText(text);
|
|
213
|
-
if (elem.text
|
|
213
|
+
if (elem.text.includes(text)) {
|
|
214
214
|
return;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
const value = await elem.getAttribute("value")
|
|
218
|
-
if (value
|
|
218
|
+
if (value.includes(text)) {
|
|
219
219
|
return;
|
|
220
220
|
}
|
|
221
221
|
|
|
@@ -384,7 +384,7 @@ async function compareContent([ selector, text ]) {
|
|
|
384
384
|
if (text instanceof RegExp && text.test(html)) {
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
|
-
if (html
|
|
387
|
+
if (html.includes(text)) {
|
|
388
388
|
return;
|
|
389
389
|
}
|
|
390
390
|
|
|
@@ -392,7 +392,7 @@ async function compareContent([ selector, text ]) {
|
|
|
392
392
|
if (text instanceof RegExp && text.test(value)) {
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
|
-
if (value
|
|
395
|
+
if (value.includes(text)) {
|
|
396
396
|
return;
|
|
397
397
|
}
|
|
398
398
|
|