@@ -239,36 +283,47 @@ describe('tags list row', () => {
...
@@ -239,36 +283,47 @@ describe('tags list row', () => {
});
});
describe('details rows',()=>{
describe('details rows',()=>{
beforeEach(()=>{
describe('when the tag has a digest',()=>{
mountComponent();
beforeEach(()=>{
mountComponent();
returnwrapper.vm.$nextTick();
returnwrapper.vm.$nextTick();
});
});
it('has 3 details rows',()=>{
expect(findDetailsRows().length).toBe(3);
});
describe.each`
it('has 3 details rows',()=>{
name | finderFunction | text | icon | clipboard
expect(findDetailsRows().length).toBe(3);
${'published date detail'} | ${findPublishedDateDetail} | ${'Published to the bar image repository at 10:23 GMT+0000 on 2020-06-29'} | ${'clock'} | ${false}
${'published date detail'} | ${findPublishedDateDetail} | ${'Published to the bar image repository at 10:23 GMT+0000 on 2020-06-29'} | ${'clock'} | ${false}