Sha256: ad2bf9fdf0882f7b1c5fcd2ac474254b16d07393bd076379d9e881ea85f88acf
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require "spec_helper" describe "Participatory process admin manages participatory processes", type: :feature do include_context "participatory process administration by process admin" it_behaves_like "manage processes examples" it_behaves_like "manage processes announcements" before do switch_to_host(organization.host) login_as user, scope: :user visit decidim_admin.participatory_processes_path end it "cannot create a new participatory_process" do expect(page).to have_no_selector(".actions .new") end context "deleting a participatory process" do let!(:participatory_process2) { create(:participatory_process, organization: organization) } let!(:process_user_role2) { create :participatory_process_user_role, user: user, participatory_process: participatory_process2 } before do visit decidim_admin.participatory_processes_path end it "cannot delete a participatory_process" do within find("tr", text: translated(participatory_process2.title)) do expect(page).to have_no_content("Destroy") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems