BigW Consortium Gitlab

Commit f016c780 by Grzegorz Bizon

Merge branch 'qa-173' into 'master'

QA::Page::Component::Dropzone#initialize needs a QA::Page::Base object See merge request gitlab-org/gitlab-ce!16852
parents cacbbe34 922154ce
...@@ -4,6 +4,8 @@ module QA ...@@ -4,6 +4,8 @@ module QA
class Dropzone class Dropzone
attr_reader :page, :container attr_reader :page, :container
# page - A QA::Page::Base object
# container - CSS selector of the comment textarea's container
def initialize(page, container) def initialize(page, container)
@page = page @page = page
@container = container @container = container
......
...@@ -27,7 +27,7 @@ module QA ...@@ -27,7 +27,7 @@ module QA
fill_in(with: text, name: 'note[note]') fill_in(with: text, name: 'note[note]')
unless attachment.nil? unless attachment.nil?
QA::Page::Component::Dropzone.new(page, '.new-note') QA::Page::Component::Dropzone.new(self, '.new-note')
.attach_file(attachment) .attach_file(attachment)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment