Fix "operation settings external dashboard component" Jest specs
What does this MR do?
Jest tests are failing on spec/frontend/operation_settings/components/external_dashboard_spec.js
.
ie: https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/225206126
This is most likely some sort of conflict between these 2 MRs:
- https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28431/diffs#f2ce16ec0f8b607f8dca9888f4a5be55a18d90dc_85_108
- https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28840/diffs
The first one introduced tests for the submit button in the external dashboard settings, while the second one introduced a new expand/collapse button that renders before the submit button, thus breaking the specs of the first one.
This should be fixed in this MR which ensures the selector only targets the button that's in the form rather than targeting the component at large.
Edited by Paul Gascou-Vaillancourt