Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EPMRPP-91148 || The duration of the item is not displayed on the Hist… #3849

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const messages = defineMessages({
id: 'HistoryLineItemTooltip.bts',
defaultMessage: 'BTS Links Included',
},
lauchName: {
launchName: {
id: 'HistoryLineItemTooltip.launchName',
defaultMessage: 'Launch Name',
},
Expand Down Expand Up @@ -159,7 +159,7 @@ export class HistoryLineItemTooltip extends Component {
</span>
{includeAllLaunches && (
<div className={cx('launch-name-block')}>
<span className={cx('title')}>{formatMessage(messages.lauchName)}:</span>
<span className={cx('title')}>{formatMessage(messages.launchName)}:</span>
<span className={cx('launch-name-value')}>
{pathNames.launchPathName.name} #{pathNames.launchPathName.number}
</span>
Expand All @@ -180,7 +180,7 @@ export class HistoryLineItemTooltip extends Component {
{status !== NOT_FOUND && status !== IN_PROGRESS && (
<div className={cx('duration-block')}>
<span className={cx('title')}>{formatMessage(messages.duration)}</span>
{getDuration(startTime, endTime, true)}
{getDuration(new Date(startTime).getTime(), new Date(endTime).getTime(), true)}
{growthDuration && (
<span className={cx('growth-duration')}>
<Triangles growthDuration={growthDuration} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ export class TestItemDetailsModal extends Component {
<div className={cx('id')}>{item.testCaseId}</div>
</ModalField>
<ModalField label={intl.formatMessage(messages.duration)}>
{getDuration(item.startTime, item.endTime)}
{getDuration(new Date(item.startTime).getTime(), new Date(item.endTime).getTime())}
</ModalField>
{item.codeRef && (
<ModalField label={intl.formatMessage(messages.codeRef)}>
Expand Down
Loading