Sha256: f8b333a1228fcf0d5e38acdd779cc0a5cc3c3a4ea8289cba7164528e18f0606b

Contents?: true

Size: 985 Bytes

Versions: 23

Compression:

Stored size: 985 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

    within ".callout-wrapper" do
      expect(page).to have_content("successfully")
    end

    visit decidim_admin_participatory_processes.participatory_processes_path

    within "tr", text: translated(participatory_process.title) do
      page.find("a.action-icon--preview").click
    end

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

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
decidim-core-0.7.4 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.7.3 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.7.2 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.7.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.7.0 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.6.8 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-0.6.8 decidim-core/lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.6.7 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-0.6.7 decidim-core/lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.6.6 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-0.6.6 decidim-core/lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.6.5 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-0.6.5 decidim-core/lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.6.4 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-0.6.4 decidim-core/lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.6.3 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-0.6.3 decidim-core/lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.6.2 lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-0.6.2 decidim-core/lib/decidim/core/test/shared_examples/process_announcements_examples.rb
decidim-core-0.6.1 lib/decidim/core/test/shared_examples/process_announcements_examples.rb