UNPKG

e2ed

Version:

E2E testing framework over Playwright

22 lines (21 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Retry = void 0; const client_1 = require("../client"); const compareByStatuses_1 = require("./compareByStatuses"); const locator_1 = require("./locator"); const RetryHeader_1 = require("./RetryHeader"); const TestRunButton_1 = require("./TestRunButton"); /** * Renders test runs list for one retry. * @internal */ const Retry = ({ retry }) => { const sortedTestRunButtons = [...retry.testRunButtons].sort(compareByStatuses_1.compareByStatuses); const buttons = sortedTestRunButtons.map((props, index) => (jsx.createElement(TestRunButton_1.TestRunButton, { ...props, index: index }))); return (jsx.createElement("article", { class: "retry", id: `retry${retry.retryIndex}`, hidden: retry.hidden, ...(0, locator_1.locator)('Retry', { index: retry.retryIndex }) }, jsx.createElement(RetryHeader_1.RetryHeader, { ...retry }), jsx.createElement("div", { class: "tests-group" }, jsx.createElement(client_1.List, { elements: buttons })))); }; exports.Retry = Retry;