froth-webdriverio-framework 4.0.47 → 4.0.49
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.
|
@@ -311,8 +311,16 @@ const commonconfig = {
|
|
|
311
311
|
async function isInvalidDuration(val) {
|
|
312
312
|
console.log("val in isValidDuration:" + val);
|
|
313
313
|
// Check if the value is null, 0, or undefined
|
|
314
|
-
let isValid
|
|
314
|
+
let isValid;
|
|
315
|
+
if (typeof val === 'string') {
|
|
316
|
+
val = val.trim().toLowerCase();
|
|
317
|
+
isValid = val === "null" || val === "0" || val === "undefined";
|
|
318
|
+
|
|
319
|
+
}else
|
|
320
|
+
isValid = val === null || val === 0 || val === undefined;
|
|
321
|
+
|
|
315
322
|
console.log("isValid in isValidDuration:" + isValid);
|
|
323
|
+
|
|
316
324
|
return isValid;
|
|
317
325
|
}
|
|
318
326
|
async function secondsToTime(secs) {
|