diff options
Diffstat (limited to 'qa/qa/page/settings/common.rb')
-rw-r--r-- | qa/qa/page/settings/common.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qa/qa/page/settings/common.rb b/qa/qa/page/settings/common.rb index 6989e8125d3..f63c987c3b4 100644 --- a/qa/qa/page/settings/common.rb +++ b/qa/qa/page/settings/common.rb @@ -7,14 +7,13 @@ module QA # Click the Expand button present in the specified section # # @param [Symbol] element_name `element` name defined in a `view` block - def expand_section(element_name) + def expand_content(element_name) within_element(element_name) do # Because it is possible to click the button before the JS toggle code is bound wait_until(reload: false) do click_button 'Expand' unless has_css?('button', text: 'Collapse', wait: 1) has_content?('Collapse') - finished_loading? end yield if block_given? |