diff options
Diffstat (limited to 'qa/qa/page/base.rb')
-rw-r--r-- | qa/qa/page/base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/page/base.rb b/qa/qa/page/base.rb index 4f79f24a629..d67407e7408 100644 --- a/qa/qa/page/base.rb +++ b/qa/qa/page/base.rb @@ -56,8 +56,8 @@ module QA end def view(path, &block) - Page::Element.evaluate(&block).tap do |elements| - @views.push(Page::View.new(path, elements)) + Page::View.evaluate(&block).tap do |view| + @views.push(Page::View.new(path, view.elements)) end end end |