diff options
Diffstat (limited to 'spec/frontend/releases/components')
-rw-r--r-- | spec/frontend/releases/components/evidence_block_spec.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spec/frontend/releases/components/evidence_block_spec.js b/spec/frontend/releases/components/evidence_block_spec.js index 6f935215dd7..69443cb7a11 100644 --- a/spec/frontend/releases/components/evidence_block_spec.js +++ b/spec/frontend/releases/components/evidence_block_spec.js @@ -40,13 +40,11 @@ describe('Evidence Block', () => { }); it('renders the correct hover text for the download', () => { - expect(wrapper.findComponent(GlLink).attributes('title')).toBe('Download evidence JSON'); + expect(wrapper.findComponent(GlLink).attributes('title')).toBe('Open evidence JSON in new tab'); }); - it('renders the correct file link for download', () => { - expect(wrapper.findComponent(GlLink).attributes().download).toMatch( - /v1\.1-evidences-[0-9]+\.json/, - ); + it('renders a link that opens in a new tab', () => { + expect(wrapper.findComponent(GlLink).attributes().target).toBe('_blank'); }); describe('sha text', () => { |