Sha256: 9a14cd2af488f9b6bb605fb22f060b5eff9cd8f9fb281bf123299d64f3f6a528

Contents?: true

Size: 391 Bytes

Versions: 34

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

module CommentsHelpers
  def have_comment_from(user, text)
    within "#comments" do
      have_content(user.name) && have_content(text)
    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

34 entries across 34 versions & 1 rubygems

Version Path
decidim-dev-0.20.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.20.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.19.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.18.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.19.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.17.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.18.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.17.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.16.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.17.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.16.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.15.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.15.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.15.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.14.4 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.14.3 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.14.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.14.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.13.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.12.2 lib/decidim/dev/test/rspec_support/comments.rb