e2ed
Version:
E2E testing framework over Playwright
24 lines (23 loc) • 959 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetryHeader = void 0;
const client_1 = require("../client");
const locator_1 = require("./locator");
const testId = 'RetryHeader';
/**
* Renders retry header.
* @internal
*/
const RetryHeader = ({ endTimeInMs, retryIndex, startTimeInMs }) => {
const durationInMs = endTimeInMs - startTimeInMs;
return (jsx.createElement(jsx.Fragment, null,
jsx.createElement("h3", { class: "retry__title", ...(0, locator_1.locator)(testId, 'title') },
"Retry ",
retryIndex),
jsx.createElement("p", { class: "retry__date", ...(0, locator_1.locator)(testId, 'date') },
jsx.createElement(client_1.DatesInterval, { endTimeInMs: endTimeInMs, startTimeInMs: startTimeInMs }),
" (",
jsx.createElement(client_1.Duration, { durationInMs: durationInMs }),
")")));
};
exports.RetryHeader = RetryHeader;