summaryrefslogtreecommitdiff
path: root/qa/qa/page/settings
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-06 03:08:02 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-06 03:08:02 +0000
commited73d4f207ef6cb8646719baa1188d096c9f3139 (patch)
treedea7ab9906154c73204a0361163e30500f929d44 /qa/qa/page/settings
parent2349eabc1a473bfb70555f0ce6d3d808cecb181d (diff)
downloadgitlab-ce-ed73d4f207ef6cb8646719baa1188d096c9f3139.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'qa/qa/page/settings')
-rw-r--r--qa/qa/page/settings/common.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/qa/page/settings/common.rb b/qa/qa/page/settings/common.rb
index 2d7b41c76e1..bd1070158f0 100644
--- a/qa/qa/page/settings/common.rb
+++ b/qa/qa/page/settings/common.rb
@@ -6,7 +6,7 @@ module QA
module Common
# Click the Expand button present in the specified section
#
- # @param [Symbol] and `element` name defined in a `view` block
+ # @param [Symbol] element_name `element` name defined in a `view` block
def expand_section(element_name)
within_element(element_name) do
# Because it is possible to click the button before the JS toggle code is bound
@@ -14,6 +14,7 @@ module QA
click_button 'Expand' unless has_css?('button', text: 'Collapse', wait: 1)
has_content?('Collapse')
+ finished_loading?
end
yield if block_given?