Sha256: aa30e7c9133e02c2541de87c0e6cdb99f2cc14f211a49c09bf93f2713849c200

Contents?: true

Size: 414 Bytes

Versions: 35

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

module CommentsHelpers
  def have_comment_from(user, text, opts = {})
    within "#comments" do
      have_content(user.name, opts) && have_content(text, opts)
    end
  end

  def have_reply_to(comment, text)
    within "#comments #comment_#{comment.id}" do
      have_content(text)
    end
  end
end

RSpec.configure do |config|
  config.include CommentsHelpers, type: :system
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
decidim-dev-0.23.6 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.24.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.23.5 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.24.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.24.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.24.0.rc2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.23.4 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.24.0.rc1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.23.3 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.23.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.23.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.23.1.rc1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.23.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.22.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.21.0 lib/decidim/dev/test/rspec_support/comments.rb