summaryrefslogtreecommitdiff
path: root/qa/qa/page
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-07-18 15:06:53 +0200
committerRémy Coutable <remy@rymai.me>2018-07-18 15:06:53 +0200
commitd2db7d40dd85aa8e80b6429d7fd6b8df23ecac2a (patch)
tree332768b9f1edd68c42f08ec2fe31a31e22cf8920 /qa/qa/page
parentd81189029d072b41434992efb991152842639009 (diff)
downloadgitlab-ce-d2db7d40dd85aa8e80b6429d7fd6b8df23ecac2a.tar.gz
Disambiguate 'File' under qa/ since we have a QA::Factory::Resource::File class as well
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'qa/qa/page')
-rw-r--r--qa/qa/page/component/dropzone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/page/component/dropzone.rb b/qa/qa/page/component/dropzone.rb
index 15bdc742fda..fd44c57123a 100644
--- a/qa/qa/page/component/dropzone.rb
+++ b/qa/qa/page/component/dropzone.rb
@@ -15,7 +15,7 @@ module QA
# instantiated on one page because there is no distinguishing
# attribute per dropzone file field.
def attach_file(attachment)
- filename = File.basename(attachment)
+ filename = ::File.basename(attachment)
field_style = { visibility: 'visible', height: '', width: '' }
page.attach_file(attachment, class: 'dz-hidden-input', make_visible: field_style)