wdio-reportportal-reporter
Advanced tools
Comparing version
@@ -24,15 +24,15 @@ import logger from "@wdio/logger"; | ||
public static sendLog(level: LEVEL, message: any) { | ||
public static sendLog(level: LEVEL | keyof typeof LEVEL, message: any) { | ||
sendToReporter(EVENTS.RP_LOG, {level, message}); | ||
} | ||
public static sendFile(level: LEVEL, name: string, content: any, type = "image/png") { | ||
public static sendFile(level: LEVEL | keyof typeof LEVEL, name: string, content: any, type = "image/png") { | ||
sendToReporter(EVENTS.RP_FILE, {level, name, content, type}); | ||
} | ||
public static sendLogToTest(test: any, level: LEVEL, message: any) { | ||
public static sendLogToTest(test: any, level: LEVEL | keyof typeof LEVEL, message: any) { | ||
sendToReporter(EVENTS.RP_TEST_LOG, {test, level, message}); | ||
} | ||
public static sendFileToTest(test: any, level: LEVEL, name: string, content: any, type = "image/png") { | ||
public static sendFileToTest(test: any, level: LEVEL | keyof typeof LEVEL, name: string, content: any, type = "image/png") { | ||
sendToReporter(EVENTS.RP_TEST_FILE, {test, level, name, content, type}); | ||
@@ -39,0 +39,0 @@ } |
{ | ||
"name": "wdio-reportportal-reporter", | ||
"version": "5.2.5", | ||
"version": "5.2.6", | ||
"description": "A WebdriverIO v5 plugin. Report results to Report Portal.", | ||
@@ -5,0 +5,0 @@ "main": "build/reporter.js", |
@@ -15,3 +15,3 @@ WDIO Report Portal Reporter | ||
"devDependencies": { | ||
"wdio-reportportal-reporter": "5.2.5", | ||
"wdio-reportportal-reporter": "5.2.6", | ||
"wdio-reportportal-service": "5.2.5" | ||
@@ -18,0 +18,0 @@ } |
76311
6.83%32
18.52%1781
10.07%