UNPKG

@moroo/wdio-slack-reporter

Version:

Reporter from WebdriverIO using Incoming webhook and Web API to send results to Slack.

43 lines (41 loc) 1.76 kB
/** * Copyright (c) moroo * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ declare const SLACK_NAME = "WebdriverIO Reporter"; declare const SLACK_ICON_URL = "https://webdriver.io/img/webdriverio.png"; declare const SUCCESS_COLOR = "#36a64f"; declare const FAILED_COLOR = "#dc3545"; declare const DEFAULT_COLOR = "#D3D3D3"; declare const FINISHED_COLOR = "#4366c7"; declare const DEFAULT_INDENT = "\t"; declare const EMOJI_SYMBOLS: { readonly PASSED: ":white_check_mark:"; readonly SKIPPED: ":double_vertical_bar:"; readonly PENDING: ":grey_question:"; readonly FAILED: ":x:"; readonly ROCKET: ":rocket:"; readonly CHECKERED_FLAG: ":checkered_flag:"; readonly STOPWATCH: ":stopwatch:"; }; declare const SLACK_REQUEST_TYPE: { readonly WEB_API_POST_MESSAGE: "web-api:message"; readonly WEB_API_UPLOAD: "web-api:upload"; readonly WEBHOOK_SEND: "webhook:send"; }; declare const EVENTS: { readonly POST_MESSAGE: "slackReporter:postMessage"; readonly UPLOAD: "slackReporter:upload"; readonly SEND: "slackReporter:send"; readonly RESULT: "slackReporter:result"; readonly SCREENSHOT: "slackReporter:screenshot"; }; declare const ERROR_MESSAGES: { readonly UNDEFINED_SLACK_OPTION: "Slack Option is undefined. Please Check Slack Option."; readonly NOT_USING_WEBHOOK: "Not using webhook."; readonly NOT_USING_WEB_API: "Not using web-api."; readonly DISABLED_OPTIONS: "Disabled notifyFailedCase or uploadScreenshotOfFailedCase options."; }; export { DEFAULT_COLOR, DEFAULT_INDENT, EMOJI_SYMBOLS, ERROR_MESSAGES, EVENTS, FAILED_COLOR, FINISHED_COLOR, SLACK_ICON_URL, SLACK_NAME, SLACK_REQUEST_TYPE, SUCCESS_COLOR };