Fix selectors in qa/page/group/show.rb
@ash.mckenzie reported a problem with one of the QA selectors and provided a fix:
Hi team, https://gitlab.com/gitlab-org/gitlab-ee/blob/master/qa/qa/page/group/show.rb#L27 seems to never match, if I change it to the following it works and immediately speeds up things:
def has_new_project_or_subgroup_dropdown? # page.has_css?(element_selector_css(:new_project_or_subgroup_dropdown)) page.has_css?('.new-project-subgroup') end
It seems element_selector_css
doesn't work when the element
has a pattern rather than a corresponding CSS class in the view.
Considering the changes being made to selectors this would be a good opportunity to update that page object and all its selectors.