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.13.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.12.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.13.0.pre1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.12.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.11.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.12.0.pre lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.11.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.11.0.pre1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.10.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.10.0 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.9.3 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.9.2 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.9.1 lib/decidim/dev/test/rspec_support/comments.rb
decidim-dev-0.9.0 lib/decidim/dev/test/rspec_support/comments.rb