forked from decidim/decidim
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.27-stable' of github.com:AjuntamentdeBarcelon…
…a/decidim into release/0.27-stable-bcn
- Loading branch information
Showing
26 changed files
with
229 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,11 +51,7 @@ runs: | |
- run: mkdir -p ./spec/decidim_dummy_app/tmp/screenshots | ||
name: Create the screenshots folder | ||
shell: "bash" | ||
- uses: nanasess/[email protected] | ||
with: | ||
# TODO: Unpin when nanasess/setup-chromedriver#190 is fixed: | ||
# https://github.com/nanasess/setup-chromedriver/issues/190 | ||
chromedriver-version: 114.0.5735.90 | ||
- uses: nanasess/setup-chromedriver@v2 | ||
- run: RAILS_ENV=test bundle exec rails assets:precompile | ||
name: Precompile assets | ||
working-directory: ./spec/decidim_dummy_app/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
decidim-accountability/spec/lib/decidim/accountability/component_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# frozen_string_literal: true | ||
|
||
require "spec_helper" | ||
|
||
describe "Accountability component" do # rubocop:disable RSpec/DescribeClass | ||
let!(:component) { create(:accountability_component) } | ||
let(:organization) { component.organization } | ||
let!(:current_user) { create(:user, :confirmed, :admin, organization: organization) } | ||
|
||
describe "on edit", type: :system do | ||
let(:edit_component_path) do | ||
Decidim::EngineRouter.admin_proxy(component.participatory_space).edit_component_path(component.id) | ||
end | ||
|
||
before do | ||
switch_to_host(organization.host) | ||
login_as current_user, scope: :user | ||
end | ||
|
||
context "when comments_max_length is empty" do | ||
it_behaves_like "has mandatory config setting", :comments_max_length | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# frozen_string_literal: true | ||
|
||
require "spec_helper" | ||
|
||
describe "Blogs component" do # rubocop:disable RSpec/DescribeClass | ||
let!(:component) { create(:post_component) } | ||
let(:organization) { component.organization } | ||
let!(:current_user) { create(:user, :confirmed, :admin, organization: organization) } | ||
|
||
describe "on edit", type: :system do | ||
let(:edit_component_path) do | ||
Decidim::EngineRouter.admin_proxy(component.participatory_space).edit_component_path(component.id) | ||
end | ||
|
||
before do | ||
switch_to_host(organization.host) | ||
login_as current_user, scope: :user | ||
end | ||
|
||
context "when comments_max_length is empty" do | ||
it_behaves_like "has mandatory config setting", :comments_max_length | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.