Commit ff5ef5c6 authored by Phil Hughes's avatar Phil Hughes

Merge branch '216920-bug-restore-exact-time-tooltip-on-last-updated-tag-column' into 'master'

Restore timestamp tooltip on last updated tag column

See merge request gitlab-org/gitlab!31317
parents 2a9c6d04 fc882f7f
......@@ -356,7 +356,7 @@ export default {
</span>
</template>
<template #cell(created_at)="{value}">
<span ref="rowTime">
<span ref="rowTime" v-gl-tooltip :title="tooltipTitle(value)">
{{ timeFormatted(value) }}
</span>
</template>
......
---
title: Add tooltip to container registry tags last update column
merge_request: 31317
author:
type: fixed
......@@ -142,10 +142,6 @@ describe('Details Page', () => {
});
describe('row checkbox', () => {
beforeEach(() => {
mountComponent();
});
it('if selected adds item to selectedItems', () => {
findFirstRowItem('rowCheckbox').vm.$emit('change');
return wrapper.vm.$nextTick().then(() => {
......@@ -277,6 +273,21 @@ describe('Details Page', () => {
});
});
});
describe('last updated cell', () => {
let timeCell;
beforeEach(() => {
timeCell = findFirstRowItem('rowTime');
});
it('displays the time in string format', () => {
expect(timeCell.text()).toBe('2 years ago');
});
it('has a tooltip timestamp', () => {
expect(timeCell.attributes('title')).toBe('Sep 19, 2017 1:45pm GMT+0000');
});
});
});
describe('pagination', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment