summaryrefslogtreecommitdiff
path: root/qa/qa/page/settings/common.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-20 09:07:57 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-20 09:07:57 +0000
commit7881eb30eaa8b01dbcfe87faa09927c75c7d6e45 (patch)
tree298bc8d2c62b2f2c29cb8ecbcf3de3eaaa6466d9 /qa/qa/page/settings/common.rb
parent64b66e0cb6d1bfd27abf24e06653f00bddb60597 (diff)
downloadgitlab-ce-7881eb30eaa8b01dbcfe87faa09927c75c7d6e45.tar.gz
Add latest changes from gitlab-org/gitlab@12-6-stable-ee
Diffstat (limited to 'qa/qa/page/settings/common.rb')
-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?