froth-webdriverio-framework 4.0.29 → 4.0.30
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.
|
@@ -18,7 +18,7 @@ async function assertText(elementSelector, expectedText) {
|
|
|
18
18
|
} catch (error) {
|
|
19
19
|
console.log(`Assertion failed. Expected text: ${expectedText}.`);
|
|
20
20
|
let annotationMessage = `Assertion failed. Expected text: ${expectedText}.`;
|
|
21
|
-
|
|
21
|
+
assert.fail(annotationMessage,"error: ",error.message);
|
|
22
22
|
browser.testError = annotationMessage
|
|
23
23
|
await amendToBrowserstack(annotationMessage, "error");
|
|
24
24
|
}
|
|
@@ -28,8 +28,7 @@ async function assertText(elementSelector, expectedText) {
|
|
|
28
28
|
console.error('Error occurred while verifying text:', error);
|
|
29
29
|
let annotationMessage = `Error occurred while verifying text: ${error.message}.`;
|
|
30
30
|
browser.testError = annotationMessage
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
assert.fail(annotationMessage,"error: ",error.message);
|
|
33
32
|
await amendToBrowserstack(annotationMessage, "error");
|
|
34
33
|
// throw error;
|
|
35
34
|
}
|
|
@@ -55,14 +54,14 @@ async function assertAttributeValue(elementSelector, attributeName, expectedText
|
|
|
55
54
|
console.warn("Assertion failed:", error.message);
|
|
56
55
|
let annotationMessage = `Assertion failed. Expected text: ${expectedText}. ,${error.message}`;
|
|
57
56
|
browser.testError = annotationMessage
|
|
58
|
-
|
|
57
|
+
assert.fail(annotationMessage,"error: ",error.message);
|
|
59
58
|
await amendToBrowserstack(annotationMessage, "error");
|
|
60
59
|
}
|
|
61
60
|
} catch (error) {
|
|
62
61
|
console.error('Error occurred while verifying text:', error);
|
|
63
62
|
let annotationMessage = `Error occurred while asserting Attribute: ${error.message}.`;
|
|
64
63
|
browser.testError = annotationMessage
|
|
65
|
-
|
|
64
|
+
assert.fail(annotationMessage,"error: ",error.message);
|
|
66
65
|
await amendToBrowserstack(annotationMessage, "error");
|
|
67
66
|
}
|
|
68
67
|
|