diff options
author | Robert Speicher <rspeicher@gmail.com> | 2017-12-15 14:44:17 -0600 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-12-15 14:44:17 -0600 |
commit | 643dca1c97adae74d7e52090cdf6758a5433295a (patch) | |
tree | 441d25b0e41be7a2a8a21e6b219103301ccd27d9 /qa | |
parent | 95f5a525b5a729725d6b559101026b8f39c9c39d (diff) | |
download | gitlab-ce-643dca1c97adae74d7e52090cdf6758a5433295a.tar.gz |
Filter by subgroup name before determining if our group has a subgroupqa/rs-filter-by-name-subgroup
We assumed that the QA sandbox group would continually be wiped and
re-created, and thus never have enough subgroups that the one we just
created during a new run wouldn't appear on the first page.
But we know what they say about assumptions.
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/group/show.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/qa/page/group/show.rb b/qa/qa/page/group/show.rb index 8080deda675..100e71ae157 100644 --- a/qa/qa/page/group/show.rb +++ b/qa/qa/page/group/show.rb @@ -6,7 +6,13 @@ module QA click_link name end + def filter_by_name(name) + fill_in 'Filter by name...', with: name + end + def has_subgroup?(name) + filter_by_name(name) + page.has_link?(name) end |