Use anchor instead of form for reset caches button
This commit is contained in:
parent
21a713f9c4
commit
ff5124ed6e
|
@ -50,9 +50,13 @@ export default {
|
||||||
Get started with Pipelines
|
Get started with Pipelines
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<form :action="resetCachePath" method="post">
|
<a
|
||||||
<input type="submit" class="btn btn-default" value="Clear runner caches" />
|
data-method="post"
|
||||||
</form>
|
rel="nofollow"
|
||||||
|
:href="resetCachePath"
|
||||||
|
class="btn btn-default">
|
||||||
|
Clear runner caches
|
||||||
|
</a>
|
||||||
|
|
||||||
<a
|
<a
|
||||||
:href="ciLintPath"
|
:href="ciLintPath"
|
||||||
|
|
|
@ -58,7 +58,7 @@ describe('Pipelines Nav Controls', () => {
|
||||||
}).$mount();
|
}).$mount();
|
||||||
|
|
||||||
expect(component.$el.querySelectorAll('.btn-default')[0].textContent).toContain('Clear runner caches');
|
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', () => {
|
it('should render link for CI lint', () => {
|
||||||
|
|
Loading…
Reference in New Issue