Skip to content

Commit

Permalink
Add timer display on resource monitor view. (#1091)
Browse files Browse the repository at this point in the history
Co-authored-by: yuxuan-ms <[email protected]>
  • Loading branch information
yuxuan-ms and yuxuan-ms authored Jun 5, 2024
1 parent ab67547 commit 79a3c29
Show file tree
Hide file tree
Showing 7 changed files with 466 additions and 227 deletions.
1 change: 1 addition & 0 deletions doc/newsfragments/1384_changed.report_ui.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add event timing view on report UI
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ const LogfileMatchAssertion = ({ assertion }) => {

const timeoutMsg =
(assertion.passed ? "Passed" : "Failed") + ` in ${timeout} seconds.`;
const entries = [...results, ...failure].map((entry) => {
const entries = [...results, ...failure].map((entry, index) => {
const { matched, pattern, start_pos: startPos, end_pos: endPos } = entry;
return (
<LogfileMatchEntry
key={`logmatch${index}`}
matched={matched}
pattern={pattern}
startPos={startPos}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ exports[`LogfileMatchAssertion shallow renders the correct HTML structure 1`] =
</div>
<LogfileMatchEntry
endPos="<inode 110000, position 5>"
key="logmatch0"
matched="okok"
pattern=".*ok.*"
startPos="<BOF>"
/>
<LogfileMatchEntry
endPos="<inode 110000, position 10>"
key="logmatch1"
matched="okok"
pattern=".*ok.*"
startPos="<inode 110000, position 5>"
/>
<LogfileMatchEntry
endPos="<inode 110000, position 15>"
key="logmatch2"
matched={null}
pattern=".*ok.*"
startPos="<inode 110000, position 10>"
Expand Down
Loading

0 comments on commit 79a3c29

Please sign in to comment.