Skip to content

Commit

Permalink
Merge pull request #1034 from GnsP/operations-stats-e2e-test
Browse files Browse the repository at this point in the history
Add data-testid for operational stats e2e test
  • Loading branch information
GnsP authored May 30, 2023
2 parents deefe1a + 951f5aa commit 2723378
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function GenericDetails({ details, className }) {
.filter((detail) => ['name', 'url', 'version', 'logs'].indexOf(detail) === -1)
.map((detail, i) => {
return (
<div key={i}>
<div key={i} data-testid={`generic-details-${detail}`}>
<strong>{capitalize(detail)}</strong>
<RenderObjectAsTable obj={details[detail]} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class AdminTabSwitch extends React.PureComponent<IAdminTabSwitchP
public renderUptimeVersion() {
return (
<span className="uptime-version-container">
<span>
<span data-testid="system-uptime-container" data-uptime={this.props.uptime}>
{this.props.uptime
? T.translate(`${PREFIX}.uptimeLabel`, {
time: humanReadableDuration(Math.ceil(this.props.uptime / 1000)),
Expand Down
2 changes: 1 addition & 1 deletion app/cdap/components/shared/RenderObjectAsTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const RenderObjectAsTable = ({ obj }) => {
return (
<tr key={i}>
<td>{node}</td>
<td>{obj[node]}</td>
<td data-testid={node}>{obj[node]}</td>
</tr>
);
})}
Expand Down

0 comments on commit 2723378

Please sign in to comment.