diff options
Diffstat (limited to 'qa/qa/page/project/settings/common.rb')
-rw-r--r-- | qa/qa/page/project/settings/common.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/qa/qa/page/project/settings/common.rb b/qa/qa/page/project/settings/common.rb index b4ef07e1540..1357bf031d5 100644 --- a/qa/qa/page/project/settings/common.rb +++ b/qa/qa/page/project/settings/common.rb @@ -10,6 +10,16 @@ module QA yield end end + + def expand_section(name) + page.within('#content-body') do + page.within('section', text: name) do + click_button 'Expand' + + yield + end + end + end end end end |