froth-webdriverio-framework 2.0.19 → 2.0.21
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.
- package/api/loginapi.js +2 -1
- package/commonMethods/assertText.js +0 -2
- package/package.json +9 -7
package/api/loginapi.js
CHANGED
|
@@ -9,7 +9,8 @@ async function getLoginToken(frothUrl, email, password) {
|
|
|
9
9
|
const formData = new FormData();
|
|
10
10
|
formData.append('email_or_username', email);
|
|
11
11
|
formData.append('password', Buffer.from(password, 'base64').toString('utf-8'));
|
|
12
|
-
|
|
12
|
+
formData.append('is_ad_user',false)
|
|
13
|
+
|
|
13
14
|
const response = await fetch(url, {
|
|
14
15
|
method: 'POST',
|
|
15
16
|
headers: {
|
|
@@ -18,12 +18,10 @@ async function assertText(driver, elementSelector, expectedText) {
|
|
|
18
18
|
let annotationMessage = `Assertion pass. Actual text: ${actualText}, Expected text: ${expectedText}.`;
|
|
19
19
|
console.log(`Assertion pass. Actual text: ${actualText}, Expected text: ${expectedText}.`);
|
|
20
20
|
// await driver.execute(`browserstack_executor: {"action": "annotate", "arguments": {"data":"${annotationMessage}","level": "info"}}`);
|
|
21
|
-
return true;
|
|
22
21
|
} else {
|
|
23
22
|
let annotationMessage = `Assertion fail. Actual text: ${actualText}, Expected text: ${expectedText}.`;
|
|
24
23
|
console.log(`Assertion fail. Actual text: ${actualText}, Expected text: ${expectedText}.`);
|
|
25
24
|
// await driver.execute(`browserstack_executor: {"action": "annotate", "arguments": {"data":"${annotationMessage}","level": "info"}}`);
|
|
26
|
-
throw new Error(`Assertion fail.`)
|
|
27
25
|
}
|
|
28
26
|
} catch (error) {
|
|
29
27
|
console.error('Error occurred while verifying text:', error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "froth-webdriverio-framework",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.21",
|
|
4
4
|
"readme": "WebdriverIO Integration",
|
|
5
5
|
"description": "WebdriverIO and BrowserStack App Automate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,16 +25,18 @@
|
|
|
25
25
|
"appium"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@wdio/appium-service": "^
|
|
29
|
-
"@wdio/browserstack-service": "^
|
|
30
|
-
"@wdio/cli": "^
|
|
31
|
-
"@wdio/local-runner": "^
|
|
28
|
+
"@wdio/appium-service": "^9.0.9",
|
|
29
|
+
"@wdio/browserstack-service": "^9.0.9",
|
|
30
|
+
"@wdio/cli": "^9.0.9",
|
|
31
|
+
"@wdio/local-runner": "^9.0.9",
|
|
32
32
|
"@wdio/mocha-framework": "^8.36.1",
|
|
33
33
|
"@wdio/spec-reporter": "^8.36.1",
|
|
34
|
-
"appium": "^2.
|
|
35
|
-
"appium-uiautomator2-driver": "^
|
|
34
|
+
"appium": "^2.11.3",
|
|
35
|
+
"appium-uiautomator2-driver": "^2.29.11",
|
|
36
36
|
"assert": "^2.1.0",
|
|
37
|
+
"axios": "^1.7.7",
|
|
37
38
|
"browserstack-local": "^1.5.5",
|
|
39
|
+
"chai": "^5.1.1",
|
|
38
40
|
"deepmerge": "^4.3.1",
|
|
39
41
|
"form-data": "^4.0.0",
|
|
40
42
|
"mysql2": "^3.10.2",
|