UNPKG

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) 485 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getNotificationTitle = void 0; const _1 = require("."); const getNotificationTitle = (statuses) => { const outcome = (0, _1.getNotificationOutcome)(statuses); if (outcome === "passed") { return "Tests passed"; } if (outcome === "flaky") { return "Tests passed with flaky tests"; } return "Tests failed"; }; exports.getNotificationTitle = getNotificationTitle;