@estruyf/github-actions-reporter
Version:
GitHub Actions reporter for Playwright
15 lines (14 loc) • 370 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTestTitle = void 0;
const getTestTitle = (test) => {
if (!test) {
return "";
}
const parent = test.parent;
if (!parent || !parent.title) {
return test.title;
}
return `${parent.title} > ${test.title}`;
};
exports.getTestTitle = getTestTitle;