UNPKG

e2ed

Version:

E2E testing framework over Playwright

39 lines (38 loc) 1.79 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MESSAGE_BACKGROUND_COLOR_BY_STATUS = exports.LogEventType = exports.LogEventStatus = void 0; /** * Status of `LogEvent`. */ var LogEventStatus; (function (LogEventStatus) { LogEventStatus["Failed"] = "failed"; LogEventStatus["Passed"] = "passed"; })(LogEventStatus || (exports.LogEventStatus = LogEventStatus = {})); /** * Type of `LogEvent`. */ var LogEventType; (function (LogEventType) { LogEventType[LogEventType["Action"] = 1] = "Action"; LogEventType[LogEventType["Assert"] = 2] = "Assert"; LogEventType[LogEventType["Entity"] = 3] = "Entity"; LogEventType[LogEventType["Util"] = 4] = "Util"; LogEventType[LogEventType["InternalAction"] = 5] = "InternalAction"; LogEventType[LogEventType["InternalAssert"] = 6] = "InternalAssert"; LogEventType[LogEventType["InternalCore"] = 7] = "InternalCore"; LogEventType[LogEventType["InternalUtil"] = 8] = "InternalUtil"; LogEventType[LogEventType["Unspecified"] = 9] = "Unspecified"; })(LogEventType || (exports.LogEventType = LogEventType = {})); /** * Background color of log message by test run status. * @internal */ exports.MESSAGE_BACKGROUND_COLOR_BY_STATUS = { ["failed" /* TestRunStatus.Failed */]: "41" /* ConsoleBackgroundColor.Red */, ["unknown" /* TestRunStatus.Unknown */]: "45" /* ConsoleBackgroundColor.Magenta */, ["passed" /* TestRunStatus.Passed */]: "42" /* ConsoleBackgroundColor.Green */, ["skipped" /* TestRunStatus.Skipped */]: "100" /* ConsoleBackgroundColor.BlackBright */, ["manual" /* TestRunStatus.Manual */]: "48;2;154;205;50" /* ConsoleBackgroundColor.YellowGreen */, ["broken" /* TestRunStatus.Broken */]: "43" /* ConsoleBackgroundColor.Yellow */, };