QA::Page::Component::Dropzone#initialize needs a QA::Page::Base object

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-02-01 15:11:33 +01:00
parent 5b73e0eb35
commit 922154ce44
No known key found for this signature in database
GPG Key ID: 46DF07E5CD9E96AB
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@ module QA
class Dropzone
attr_reader :page, :container
# page - A QA::Page::Base object
# container - CSS selector of the comment textarea's container
def initialize(page, container)
@page = page
@container = container

View File

@ -27,7 +27,7 @@ module QA
fill_in(with: text, name: 'note[note]')
unless attachment.nil?
QA::Page::Component::Dropzone.new(page, '.new-note')
QA::Page::Component::Dropzone.new(self, '.new-note')
.attach_file(attachment)
end