Add tests for the clone panel
Summary
The clone panel (see below) doesn’t have any test coverage at the moment.
In !54671 (merged) we had to fix a regression that could’ve been prevented by a spec, leading to extra work for the delivery team (see gitlab-com/gl-infra/delivery#1570 (closed)).
Involved components
- the component logic:
app/assets/javascripts/clone_panel.js
- the HAML for the clone panel:
app/views/shared/_clone_panel.html.haml
- the HAML for the clone button (which caused the regression):
app/views/projects/buttons/_clone.html.haml
Edited by Kev