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
- expect().toFail(annotationMessage, "Error : ",error.message);
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
- expect().toFail(annotationMessage, "Error : ",error.message);
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
- expect().toFail(annotationMessage, "Error : ",error.message);
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
- expect().toFail(annotationMessage, "Error : ",error.message);
64
+ assert.fail(annotationMessage,"error: ",error.message);
66
65
  await amendToBrowserstack(annotationMessage, "error");
67
66
  }
68
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "4.0.29",
3
+ "version": "4.0.30",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",