Skip to content

Fix "operation settings external dashboard component" Jest specs

Paul Gascou-Vaillancourt requested to merge fix-external-dashboard-specs into master

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:

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

Merge request reports