diff options
author | Rémy Coutable <remy@rymai.me> | 2018-02-01 15:11:33 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-02-01 15:11:35 +0100 |
commit | 922154ce44e0e9a86b3c1d28e4e0c35e03f0bb08 (patch) | |
tree | 8444f8f69a64f44dd95de088ef60672331c51feb | |
parent | 5b73e0eb35f5b9b78c228a4867ef78538ef05653 (diff) | |
download | gitlab-ce-qa-173.tar.gz |
QA::Page::Component::Dropzone#initialize needs a QA::Page::Base objectqa-173
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | qa/qa/page/component/dropzone.rb | 2 | ||||
-rw-r--r-- | qa/qa/page/project/issue/show.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/qa/qa/page/component/dropzone.rb b/qa/qa/page/component/dropzone.rb index 5e6fdff20eb..15bdc742fda 100644 --- a/qa/qa/page/component/dropzone.rb +++ b/qa/qa/page/component/dropzone.rb @@ -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 diff --git a/qa/qa/page/project/issue/show.rb b/qa/qa/page/project/issue/show.rb index 364a2c61665..5bc0598a524 100644 --- a/qa/qa/page/project/issue/show.rb +++ b/qa/qa/page/project/issue/show.rb @@ -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 |