From 643dca1c97adae74d7e52090cdf6758a5433295a Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Fri, 15 Dec 2017 14:44:17 -0600 Subject: [PATCH] Filter by subgroup name before determining if our group has a 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. --- qa/qa/page/group/show.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- GitLab