Sha256: 972f4845030128cb4cf32fa6e9c7777f363620ca57010d86e0d6bb90482f5770

Contents?: true

Size: 927 Bytes

Versions: 49

Compression:

Stored size: 927 Bytes

Contents

# frozen_string_literal: true

shared_examples "manage processes announcements" do
  let!(:participatory_process) { create(:participatory_process, organization: organization) }

  it "customize an general announcement for the process" do
    click_link translated(participatory_process.title)

    fill_in_i18n_editor(
      :participatory_process_announcement,
      "#participatory_process-announcement-tabs",
      en: "An important announcement",
      es: "Un aviso muy importante",
      ca: "Un avís molt important"
    )

    within ".edit_participatory_process" do
      find("*[type=submit]").click
    end

    expect(page).to have_admin_callout("successfully")

    visit decidim_admin_participatory_processes.participatory_processes_path

    within "tr", text: translated(participatory_process.title) do
      click_link "Preview"
    end

    expect(page).to have_content("An important announcement")
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
decidim-core-0.9.3 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.9.2 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.9.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.9.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.8.4 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.8.3 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.8.2 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.8.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.8.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb