froth-webdriverio-framework 4.0.24 → 4.0.26
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.
|
@@ -15,7 +15,7 @@ async function assertText(elementSelector, expectedText) {
|
|
|
15
15
|
let annotationMessage = `Assertion passed. Actual text: ${actualText}, Expected text: ${expectedText}.`;
|
|
16
16
|
await amendToBrowserstack(annotationMessage, "info");
|
|
17
17
|
} catch (error) {
|
|
18
|
-
console.log(`Assertion failed. Expected text:
|
|
18
|
+
console.log(`Assertion failed. Expected text: ${expectedText}.`);
|
|
19
19
|
let annotationMessage = `Assertion failed. Expected text: ${expectedText}.`;
|
|
20
20
|
browser.testError = annotationMessage
|
|
21
21
|
await amendToBrowserstack(annotationMessage, "error");
|
|
@@ -177,6 +177,9 @@ const commonconfig = {
|
|
|
177
177
|
resultdetails.comments.push(`${test.title} - failed: ${localError}`);
|
|
178
178
|
browser.testError = null; // clear it
|
|
179
179
|
scriptresult = "FAILED"
|
|
180
|
+
passed = false; // Mark test as failed
|
|
181
|
+
result = 1; // Update the result status
|
|
182
|
+
|
|
180
183
|
// throw err; // causes test to fail after execution
|
|
181
184
|
}
|
|
182
185
|
if (passed && !localError) {
|
|
@@ -204,8 +207,6 @@ const commonconfig = {
|
|
|
204
207
|
jwtScript.platform.toLowerCase(),
|
|
205
208
|
scriptresult)
|
|
206
209
|
|
|
207
|
-
if (localError)
|
|
208
|
-
throw new Error(`Test failed: ${localError}`);
|
|
209
210
|
|
|
210
211
|
},
|
|
211
212
|
/**
|