gitlab-ce/qa/qa/page/project/settings/common.rb

28 lines
540 B
Ruby

module QA
module Page
module Project
module Settings
module Common
def expand(element_name)
page.within('#content-body') do
click_element(element_name)
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
end
end