playwright-msteams-reporter-conditional
Version:
Microsoft Teams reporter for Playwright which allows you to send notifications about the status of your E2E tests.
16 lines (15 loc) • 452 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNotificationColor = void 0;
const _1 = require(".");
const getNotificationColor = (statuses) => {
const outcome = (0, _1.getNotificationOutcome)(statuses);
if (outcome === "passed") {
return "Good";
}
if (outcome === "flaky") {
return "Warning";
}
return "Attention";
};
exports.getNotificationColor = getNotificationColor;