froth-webdriverio-framework 7.0.11 → 7.0.13
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.
|
@@ -106,15 +106,15 @@ module.exports = {
|
|
|
106
106
|
decrpytData
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
await encryptData(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
)
|
|
113
|
-
|
|
114
|
-
const decrypted_data = await decrpytData(response)
|
|
115
|
-
const data = JSON.parse(decrypted_data)
|
|
116
|
-
console.log("decrpted data" + data)
|
|
117
|
-
return data
|
|
109
|
+
// await encryptData(
|
|
110
|
+
// data,
|
|
111
|
+
// secret_key
|
|
112
|
+
// )
|
|
113
|
+
|
|
114
|
+
// const decrypted_data = await decrpytData(response)
|
|
115
|
+
// const data = JSON.parse(decrypted_data)
|
|
116
|
+
// console.log("decrpted data" + data)
|
|
117
|
+
// return data
|
|
118
118
|
|
|
119
119
|
// Encrypt a password
|
|
120
120
|
//const encryptedPassword = encryptData("admin@1234", SECRET_KEY);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//const fetch = require('node-fetch'); // Import the fetch function
|
|
2
2
|
//const FormData = require('form-data'); // Import the FormData constructor
|
|
3
3
|
|
|
4
|
-
const enc = require('./
|
|
4
|
+
const enc = require('./aesEncryptionDecryption.js')
|
|
5
5
|
async function getLoginToken(frothUrl, email, password) {
|
|
6
6
|
try {
|
|
7
7
|
const url = `${frothUrl}/api/login/`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "froth-webdriverio-framework",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.13",
|
|
4
4
|
"readme": "WendriverIO Integration with [BrowserStack](https://www.browserstack.com)",
|
|
5
5
|
"description": "Selenium examples for WebdriverIO and BrowserStack App Automate",
|
|
6
6
|
"scripts": {
|