-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9d4ff46
commit 5453f35
Showing
11 changed files
with
632 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
const screenshotHelpers = [ | ||
'WebDriver', | ||
'Appium', | ||
'Puppeteer', | ||
'TestCafe', | ||
'Playwright', | ||
'WebDriver', | ||
'Appium', | ||
'Puppeteer', | ||
'TestCafe', | ||
'Playwright', | ||
]; | ||
|
||
const PREFIX_PASSED_TEST = '✅ [TEST]'; | ||
const PREFIX_FAILED_TEST = '❌ [TEST]'; | ||
const PREFIX_SKIPPED_TEST = '⏩ [SKIPPED TEST]' | ||
const PREFIX_SKIPPED_TEST = '⏩ [SKIPPED TEST]'; | ||
const PREFIX_PASSED_STEP = '✅ [STEP]'; | ||
const PREFIX_FAILED_STEP = '❌ [STEP]'; | ||
const PREFIX_BUG = '🐞🐞 LOGS --->' | ||
const PREFIX_BUG = '🐞🐞 LOGS --->'; | ||
|
||
module.exports = { | ||
screenshotHelpers, | ||
PREFIX_PASSED_TEST, | ||
PREFIX_FAILED_TEST, | ||
PREFIX_SKIPPED_TEST, | ||
PREFIX_PASSED_STEP, | ||
PREFIX_FAILED_STEP, | ||
PREFIX_BUG | ||
} | ||
screenshotHelpers, | ||
PREFIX_PASSED_TEST, | ||
PREFIX_FAILED_TEST, | ||
PREFIX_SKIPPED_TEST, | ||
PREFIX_PASSED_STEP, | ||
PREFIX_FAILED_STEP, | ||
PREFIX_BUG, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
const LAUNCH_MODES = { | ||
DEFAULT: 'DEFAULT', | ||
DEBUG: 'DEBUG', | ||
} | ||
DEFAULT: 'DEFAULT', | ||
DEBUG: 'DEBUG', | ||
}; | ||
|
||
module.exports = { | ||
LAUNCH_MODES | ||
} | ||
LAUNCH_MODES, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
const LOG_LEVELS = { | ||
TRACE: 'TRACE', | ||
DEBUG: 'DEBUG', | ||
WARN: 'WARN', | ||
INFO: 'INFO', | ||
ERROR: 'ERROR', | ||
FATAL: 'FATAL', | ||
} | ||
TRACE: 'TRACE', | ||
DEBUG: 'DEBUG', | ||
WARN: 'WARN', | ||
INFO: 'INFO', | ||
ERROR: 'ERROR', | ||
FATAL: 'FATAL', | ||
}; | ||
|
||
module.exports = { | ||
LOG_LEVELS | ||
} | ||
LOG_LEVELS, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
const STATUSES = { | ||
FAILED: 'failed', | ||
PASSED: 'passed', | ||
SKIPPED: 'skipped', | ||
STOPPED: 'stopped', | ||
INTERRUPTED: 'interrupted', | ||
CANCELLED: 'cancelled', | ||
INFO: 'info', | ||
WARN: 'warn', | ||
} | ||
FAILED: 'failed', | ||
PASSED: 'passed', | ||
SKIPPED: 'skipped', | ||
STOPPED: 'stopped', | ||
INTERRUPTED: 'interrupted', | ||
CANCELLED: 'cancelled', | ||
INFO: 'info', | ||
WARN: 'warn', | ||
}; | ||
|
||
module.exports = { | ||
STATUSES | ||
} | ||
STATUSES, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
const TEST_ITEM_TYPES = { | ||
SUITE: 'SUITE', | ||
TEST: 'TEST', | ||
STEP: 'STEP', | ||
} | ||
SUITE: 'SUITE', | ||
TEST: 'TEST', | ||
STEP: 'STEP', | ||
}; | ||
|
||
module.exports = { | ||
TEST_ITEM_TYPES | ||
} | ||
TEST_ITEM_TYPES, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
const axios = require('axios').default; | ||
|
||
class RestClient { | ||
constructor() { | ||
this.axios = axios.create(); | ||
} | ||
constructor() { | ||
this.axios = axios.create(); | ||
} | ||
|
||
async makePostRequest (url, payload = {}, headers = {}) { | ||
try { | ||
return this.axios.post(url, payload, { headers }); | ||
} catch (e) { | ||
throw new Error(e.message); | ||
} | ||
} | ||
async makePostRequest(url, payload = {}, headers = {}) { | ||
try { | ||
return this.axios.post(url, payload, { headers }); | ||
} catch (e) { | ||
throw new Error(e.message); | ||
} | ||
} | ||
|
||
async makePutRequest (url, payload = {}, headers = {}) { | ||
try { | ||
return this.axios.put(url, payload, { headers }); | ||
} catch (e) { | ||
throw new Error(e.message); | ||
} | ||
} | ||
async makePutRequest(url, payload = {}, headers = {}) { | ||
try { | ||
return this.axios.put(url, payload, { headers }); | ||
} catch (e) { | ||
throw new Error(e.message); | ||
} | ||
} | ||
|
||
async makeGetRequest(url, headers = {}) { | ||
try { | ||
return this.axios.get(url, { headers }); | ||
} catch (e) { | ||
throw new Error(e.message); | ||
} | ||
} | ||
async makeGetRequest(url, headers = {}) { | ||
try { | ||
return this.axios.get(url, { headers }); | ||
} catch (e) { | ||
throw new Error(e.message); | ||
} | ||
} | ||
|
||
async makeDeleteRequest(url, headers = {}) { | ||
try { | ||
return this.axios.delete(url, { headers }); | ||
} catch (e) { | ||
throw new Error(e.message); | ||
} | ||
} | ||
async makeDeleteRequest(url, headers = {}) { | ||
try { | ||
return this.axios.delete(url, { headers }); | ||
} catch (e) { | ||
throw new Error(e.message); | ||
} | ||
} | ||
} | ||
|
||
module.exports = RestClient; |
Oops, something went wrong.