froth-webdriverio-framework 1.0.92 → 1.0.93

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.
@@ -7,7 +7,7 @@ let scrollToLeft = null;
7
7
  let scrollToRight = null;
8
8
  let scrollDownToView = null;
9
9
  let scrollRightToView = null;
10
- let verifyText = null;
10
+ let assertText = null;
11
11
  let connectToDB = null;
12
12
  if (process.env.LOCATION == 'local') {
13
13
 
@@ -19,7 +19,7 @@ if (process.env.LOCATION == 'local') {
19
19
  scrollToRight = require('./scrollToRight');
20
20
  scrollDownToView = require('./scrollDownToView');
21
21
  scrollRightToView = require('./scrollRightToView');
22
- verifyText = require('./verifyText');
22
+ assertText = require('./assertText');
23
23
  connectToDB = require('./connectToDB');
24
24
  } else {
25
25
  scrollToEnd = require('froth-webdriverio-framework/commonMethods/scrollToEnd');
@@ -30,7 +30,7 @@ if (process.env.LOCATION == 'local') {
30
30
  scrollToRight = require('froth-webdriverio-framework/commonMethods/scrollToRight');
31
31
  scrollDownToView = require('froth-webdriverio-framework/commonMethods/scrollDownToView');
32
32
  scrollRightToView = require('froth-webdriverio-framework/commonMethods/scrollRightToView');
33
- verifyText = require('froth-webdriverio-framework/commonMethods/verifyText');
33
+ assertText = require('froth-webdriverio-framework/commonMethods/assertText');
34
34
  connectToDB = require('froth-webdriverio-framework/commonMethods/connectToDB');
35
35
  }
36
36
  //export the variabels
@@ -43,6 +43,6 @@ module.exports = {
43
43
  scrollToRight,
44
44
  scrollDownToView,
45
45
  scrollRightToView,
46
- verifyText,
46
+ assertText,
47
47
  connectToDB
48
48
  };
@@ -1,5 +1,5 @@
1
1
  // Function to verify text in Android app
2
- async function verifyText(driver, elementSelector, expectedText) {
2
+ async function assertText(driver, elementSelector, expectedText) {
3
3
  // try {
4
4
  // Wait for the element to be visible
5
5
  await driver.waitUntil(async () => {
@@ -25,6 +25,6 @@ async function verifyText(driver, elementSelector, expectedText) {
25
25
  // }
26
26
  }
27
27
 
28
- module.exports = verifyText;
28
+ module.exports = assertText;
29
29
 
30
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "1.0.92",
3
+ "version": "1.0.93",
4
4
  "readme": "WebdriverIO Integration",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",