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.23.6 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.23.5 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.23.4 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.23.3 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.23.2 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.23.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.23.1.rc1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.23.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.22.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.21.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.20.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.20.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.19.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.18.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.19.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.17.2 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.18.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.17.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.16.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.17.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb