Skip to content

Update select2 dropdown check

Désirée Chevalier requested to merge qa-update-select2-dropdown into master

What does this MR do?

This one line change cuts 10 seconds off the project audit logs e2e spec.

select2-input is only present when the dropdown is open, so previously, dropdown_open? would return true immediately if the dropdown was open but would always wait the full 10 seconds looking for the element if the dropdown was closed.

This change checks if the select2-focusser is disabled or not, removing the 10 second wait when the dropdown is closed.

(select2-focusser is disabled when the dropdown is open and enabled when the dropdown is closed.)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Merge request reports