diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-02-01 21:49:31 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-02-01 21:49:31 +0000 |
commit | f016c780f658cebedfb4ffd31ecf37b07139cdef (patch) | |
tree | e4c4e4fd3d85fd6770e358ec1441ff2b3378b57a /qa | |
parent | cacbbe342e662fbaa9deb5b45a13692c70b3ba57 (diff) | |
parent | 922154ce44e0e9a86b3c1d28e4e0c35e03f0bb08 (diff) | |
download | gitlab-ce-f016c780f658cebedfb4ffd31ecf37b07139cdef.tar.gz |
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
Diffstat (limited to 'qa')
-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 |