Fix license compliance spec loading issue
What does this MR do?
Fixes a transient error in the license compliance spec by waiting for the (newer) loading icon to disappear after expanding a section.
Also fixes an excessive wait in the select2 component.
Closes #37980 (closed)
Screenshots
Does this MR meet the acceptance criteria?
Conformity
Edited by Désirée Chevalier