Skip to content

E2E: Fix select2 selector issue in group_file_template_spec

What does this MR do and why?

With the introduction of !108807 (merged), the group file template settings section is no longer using select2 for its dropdown.

The use_select2? method in search_and_select in dropdown.rb returns true because another section on the settings page still has .select2-container.

This moves search_and_select(path) and click_element(:save_changes_button) into the within element block so that only the templates section of the page is considered.

Relates to #389181 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading