Sha256: c2a8695196d2bf6ada86e065b9fe124f0e51f6f6b83c22e95feaec5088618e46
Contents?: true
Size: 1.96 KB
Versions: 19
Compression:
Stored size: 1.96 KB
Contents
# frozen_string_literal: true require "spec_helper" describe "Admin manages ogranization", type: :feature do let(:organization) { create(:organization) } let(:user) { create(:user, :admin, :confirmed, organization: organization) } before do switch_to_host(organization.host) login_as user, scope: :user end describe "edit" do it "updates the values from the form" do visit decidim_admin.edit_organization_path fill_in "Name", with: "My super-uber organization" fill_in_i18n_editor :organization_description, "#organization-description-tabs", en: "My own super description", es: "Mi gran descripción", ca: "La meva gran descripció" fill_in_i18n :organization_welcome_text, "#organization-welcome_text-tabs", en: "My super welcome text", es: "Mi super texto de bienvenida", ca: "El meu súper text de benvinguda" %w(Twitter Facebook Instagram YouTube GitHub).each do |network| click_link network fill_in "organization_#{network.downcase}_handler", with: "decidim" end click_button "Update" select "Castellano", from: "Default locale" fill_in "Reference prefix", with: "ABC" fill_in "Official organization url", with: "http://www.example.com" attach_file "Homepage image", Decidim::Dev.asset("city.jpeg") attach_file "Logo", Decidim::Dev.asset("city2.jpeg") attach_file "Icon", Decidim::Dev.asset("city3.jpeg") attach_file "Official logo header", Decidim::Dev.asset("city2.jpeg") attach_file "Official logo footer", Decidim::Dev.asset("city3.jpeg") expect(page).to have_content("updated successfully") end end end
Version data entries
19 entries across 19 versions & 1 rubygems