e2ed
Version:
E2E testing framework over Playwright
14 lines (13 loc) • 729 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Screenshot = void 0;
/**
* Renders screenshot of test in HTML report.
* This base client function should not use scope variables (except other base functions).
* @internal
*/
const Screenshot = ({ name, open = false, url }) => (jsx.createElement("details", { class: "step-attachment", open: open },
jsx.createElement("summary", { class: "step-attachment__title" }, name),
jsx.createElement("button", { class: "step__screenshot-button", type: "button", "aria-haspopup": "dialog", "aria-label": "Open full size screenshot" },
jsx.createElement("img", { src: url, alt: name, title: name }))));
exports.Screenshot = Screenshot;