froth-webdriverio-framework 3.0.159 → 4.0.1
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.
|
@@ -34,9 +34,7 @@ async function callapi(methodtype, api_url, queryParams, payloaddetails, body_ty
|
|
|
34
34
|
console.log("No body sent (body_type not provided or empty payload).");
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
// Send the request
|
|
39
|
-
// if (method === 'GET' && body) {
|
|
37
|
+
|
|
40
38
|
console.warn("Warning: GET request with a body is non-standard and may not work with all APIs.");
|
|
41
39
|
response = await axios({
|
|
42
40
|
method: method,
|
|
@@ -44,14 +42,7 @@ async function callapi(methodtype, api_url, queryParams, payloaddetails, body_ty
|
|
|
44
42
|
headers: headers,
|
|
45
43
|
data: body === null ? undefined : body // Axios allows body with GET in some cases
|
|
46
44
|
});
|
|
47
|
-
|
|
48
|
-
// // ✅ Use Fetch for other request types
|
|
49
|
-
// response = await fetch(api_url, {
|
|
50
|
-
// method,
|
|
51
|
-
// headers,
|
|
52
|
-
// body: method !== 'GET' ? body : null, // Fetch does NOT allow body in GET
|
|
53
|
-
// });
|
|
54
|
-
// }
|
|
45
|
+
|
|
55
46
|
|
|
56
47
|
console.log("Response Data:", response.data);
|
|
57
48
|
|
|
@@ -22,7 +22,9 @@ function setupPrerequisites() {
|
|
|
22
22
|
process.env.BROWSERSTACK_USERNAME = capabilities.userName;
|
|
23
23
|
capabilities.accessKey = Buffer.from(capabilities.accessKey, 'base64').toString('utf-8');
|
|
24
24
|
process.env.BROWSERSTACK_ACCESS_KEY = capabilities.accessKey
|
|
25
|
-
|
|
25
|
+
|
|
26
|
+
console.log('capabilities.platformName:', capabilities.platformName ?? 'web');
|
|
27
|
+
|
|
26
28
|
process.env.BS_SESSION_TYPE = capabilities.platformName === 'android' || capabilities.platformName === 'ios' ? 'app-automate' : 'automate';
|
|
27
29
|
capabilities.buildName = process.env.FROTH_TESTOPS_BUILD_NAME;
|
|
28
30
|
|
package/package.json
CHANGED
package/config/commonconfig.js
DELETED
|
File without changes
|