froth-webdriverio-framework 0.1.50 → 0.1.52

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.
@@ -5,7 +5,7 @@ const getLoginToken = require("../api/loginapi");
5
5
  async function getSuiteDetails(frothUrl, token, id) {
6
6
  let jsondata = {};
7
7
  if (id = null || id != 0) {
8
- const url = `https://${frothUrl}/api/automationsuite-retrieve/${id}`;
8
+ const url = `https://${frothUrl}/api/automationsuite-retrieve/${id}/`;
9
9
 
10
10
  try {
11
11
 
@@ -13,6 +13,8 @@ async function getSuiteDetails(frothUrl, token, id) {
13
13
  method: 'GET',
14
14
  headers: {
15
15
  'Authorization': `Bearer ${token}`,
16
+ 'Content-Type': 'application/json'
17
+
16
18
  }
17
19
  });
18
20
  if (response.ok) {
@@ -4,7 +4,7 @@ const login = require('./loginapi.js');
4
4
  async function getDataById(frothUrl, token, id) {
5
5
 
6
6
  if (id != 0) {
7
- const url = `https://${frothUrl}/api/testdata-retrieve/${id}`;
7
+ const url = `https://${frothUrl}/api/testdata-retrieve/${id}/`;
8
8
 
9
9
  try {
10
10
 
@@ -12,6 +12,7 @@ async function getDataById(frothUrl, token, id) {
12
12
  method: 'GET',
13
13
  headers: {
14
14
  'Authorization': `Bearer ${token}`,
15
+ 'Content-Type': 'application/json'
15
16
  }
16
17
  });
17
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "froth-webdriverio-framework",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "readme": "WendriverIO Integration with [BrowserStack]",
5
5
  "description": "WebdriverIO and BrowserStack App Automate",
6
6
  "license": "MIT",