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.26.10 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.9 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.8 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.7 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.5 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.4 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.3 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.0.rc2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.26.0.rc1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.25.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.25.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.25.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.25.0.rc4 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.25.0.rc3 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.25.0.rc2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.25.0.rc1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.24.3 lib/decidim/dev/test/rspec_support/comments.rb