diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-25 15:09:25 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-25 15:09:25 +0000 |
commit | ec558ad8ed732ff6f8a89aa3651eb92c27c50deb (patch) | |
tree | e6d0eb5946758007594e8bf6feb5fb9759f48d6c /spec/frontend/releases/components | |
parent | 7b1fa4c1a1b784c2f78405dca82e56a009f1e773 (diff) | |
download | gitlab-ce-ec558ad8ed732ff6f8a89aa3651eb92c27c50deb.tar.gz |
Add latest changes from gitlab-org/gitlab@master
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', () => { |