diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-06 04:11:41 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-01-06 04:11:41 +0100 |
commit | ff5124ed6ecb2f20841e535b3aaa3b0d230f920f (patch) | |
tree | b60485f925563bbac4b91b7aad66a8a720058009 /spec/javascripts/pipelines | |
parent | 21a713f9c48fb0be90da61321ecb75b3f27039d2 (diff) | |
download | gitlab-ce-ff5124ed6ecb2f20841e535b3aaa3b0d230f920f.tar.gz |
Use anchor instead of form for reset caches button41249-clearing-the-cache
Diffstat (limited to 'spec/javascripts/pipelines')
-rw-r--r-- | spec/javascripts/pipelines/nav_controls_spec.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/pipelines/nav_controls_spec.js b/spec/javascripts/pipelines/nav_controls_spec.js index cf9bbee2b13..09a0c14d96c 100644 --- a/spec/javascripts/pipelines/nav_controls_spec.js +++ b/spec/javascripts/pipelines/nav_controls_spec.js @@ -58,7 +58,7 @@ describe('Pipelines Nav Controls', () => { }).$mount(); expect(component.$el.querySelectorAll('.btn-default')[0].textContent).toContain('Clear runner caches'); - expect(component.$el.querySelector('form').getAttribute('action')).toEqual(mockData.resetCachePath); + expect(component.$el.querySelectorAll('.btn-default')[0].getAttribute('href')).toEqual(mockData.resetCachePath); }); it('should render link for CI lint', () => { |