froth-webdriverio-framework 7.0.16 → 7.0.17
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.
|
@@ -22,13 +22,7 @@ async function safeStringify(data) {
|
|
|
22
22
|
* ===============================
|
|
23
23
|
*/
|
|
24
24
|
async function callapi(
|
|
25
|
-
methodType,
|
|
26
|
-
apiUrl,
|
|
27
|
-
queryParams,
|
|
28
|
-
payloadDetails,
|
|
29
|
-
bodyType,
|
|
30
|
-
authentication,
|
|
31
|
-
headersDetails
|
|
25
|
+
methodType, apiUrl, queryParams, payloadDetails, bodyType, authentication, headersDetails, attachments
|
|
32
26
|
) {
|
|
33
27
|
let response;
|
|
34
28
|
const startTime = Date.now();
|
|
@@ -37,7 +31,6 @@ async function callapi(
|
|
|
37
31
|
try {
|
|
38
32
|
const method = methodType.toUpperCase();
|
|
39
33
|
const headers = await formHeaders(authentication, headersDetails, bodyType);
|
|
40
|
-
|
|
41
34
|
let body;
|
|
42
35
|
if (bodyType === "raw" && payloadDetails && Object.keys(payloadDetails).length > 0) {
|
|
43
36
|
console.log("Payload (JSON):", JSON.stringify(payloadDetails));
|
|
@@ -81,7 +74,7 @@ async function callapi(
|
|
|
81
74
|
const duration = Date.now() - startTime;
|
|
82
75
|
|
|
83
76
|
// Always store full response
|
|
84
|
-
|
|
77
|
+
// BUFFER.setItem("LAST_API_RESPONSE", response.data);
|
|
85
78
|
console.log("Response Data:", response.data);
|
|
86
79
|
|
|
87
80
|
/**
|
|
@@ -234,8 +227,8 @@ async function validateAttributeData(
|
|
|
234
227
|
}
|
|
235
228
|
|
|
236
229
|
try {
|
|
237
|
-
expect(
|
|
238
|
-
let annotationMessage = `Attribute name : ${attributeName} - verification passed. Actual text: ${
|
|
230
|
+
expect(actualValue).toBe(expectedValue, `${attributeName} --> Expected value: ${expectedValue}, but got: ${actualValue}`);
|
|
231
|
+
let annotationMessage = `Attribute name : ${attributeName} - verification passed. Actual text: ${actualValue}, Expected text: ${expectedValue}.`;
|
|
239
232
|
await amendToBrowserstack.amend2Browserstack(
|
|
240
233
|
annotationMessage,
|
|
241
234
|
"info"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "froth-webdriverio-framework",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.17",
|
|
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": {
|