decidim-dev 0.27.0.rc1 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/am-ET.yml +0 -1
- data/config/locales/ca.yml +6 -0
- data/config/locales/cs.yml +6 -0
- data/config/locales/da.yml +0 -1
- data/config/locales/en.yml +6 -0
- data/config/locales/eo.yml +0 -1
- data/config/locales/es-MX.yml +6 -0
- data/config/locales/es-PY.yml +6 -0
- data/config/locales/es.yml +6 -0
- data/config/locales/et.yml +0 -1
- data/config/locales/fi-plain.yml +6 -0
- data/config/locales/fi.yml +6 -0
- data/config/locales/fr-CA.yml +6 -0
- data/config/locales/fr.yml +6 -0
- data/config/locales/hr.yml +0 -1
- data/config/locales/ja.yml +6 -0
- data/config/locales/ko.yml +0 -1
- data/config/locales/lb.yml +0 -1
- data/config/locales/lt.yml +63 -0
- data/config/locales/mt.yml +0 -1
- data/config/locales/oc-FR.yml +1 -0
- data/config/locales/om-ET.yml +0 -1
- data/config/locales/pt-BR.yml +1 -1
- data/config/locales/si-LK.yml +0 -1
- data/config/locales/so-SO.yml +0 -1
- data/config/locales/sw-KE.yml +0 -1
- data/config/locales/ti-ER.yml +0 -1
- data/config/locales/val-ES.yml +0 -1
- data/config/locales/vi.yml +0 -1
- data/config/locales/zh-TW.yml +0 -1
- data/lib/decidim/dev/assets/import_voting_census_only_headers.csv +1 -0
- data/lib/decidim/dev/assets/ssl-cert.pem +22 -0
- data/lib/decidim/dev/assets/ssl-key.pem +28 -0
- data/lib/decidim/dev/test/rspec_support/capybara.rb +37 -7
- data/lib/decidim/dev/test/rspec_support/{cookies.rb → data_consent.rb} +10 -10
- data/lib/decidim/dev/test/rspec_support/helpers.rb +12 -0
- data/lib/decidim/dev/version.rb +1 -1
- data/lib/tasks/generators.rake +2 -1
- metadata +11 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e5143ab2b179b734931df26b8e8d8241aee1e1a2830ece963d284adf9d44966
|
4
|
+
data.tar.gz: 8db02ef29ab03fadc1d60a9093be03c7d4841e86593882fb0aff8905649f86aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d216bcb87df784fabdcc92b2c887e20250b63d3603401dc0d502fc105a8a15d6a91a4f0b5e5e55afc9906e5010a3e91af005c9f43392cadadc2ed1d1ae258ec
|
7
|
+
data.tar.gz: 96c35743150690126dd2f83e891f6ff00570b336f843379406282aa6a2d468f4cf6418e483165c5607335574c40ff93645ae73bc2cfaf1eac63880ee15f14485
|
data/config/locales/am-ET.yml
CHANGED
data/config/locales/ca.yml
CHANGED
@@ -15,6 +15,12 @@ ca:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Entrada guiada
|
19
|
+
guided_help: Text d'ajuda
|
20
|
+
guided_readonly: Entrada deshabilitada
|
21
|
+
guided_rich: Entrada guiada enriquida
|
22
|
+
guided_rich_help_html: HTML <strong>ajuda</strong> text
|
23
|
+
guided_rich_readonly_html: HTML <strong>ajuda</strong> text per l'entrada deshabilitada
|
18
24
|
readonly_attribute: Atribut de només lectura
|
19
25
|
test: Una prova
|
20
26
|
test_choices:
|
data/config/locales/cs.yml
CHANGED
@@ -15,6 +15,12 @@ cs:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Řízené zadávání
|
19
|
+
guided_help: Text nápovědy
|
20
|
+
guided_readonly: Zakázaný zápis
|
21
|
+
guided_rich: Řízené plnohodnotné zadávání
|
22
|
+
guided_rich_help_html: HTML textová <strong>nápověda</strong>
|
23
|
+
guided_rich_readonly_html: HTML <strong>nápověda</strong> text pro zakázaný zápis
|
18
24
|
readonly_attribute: Atribut pouze pro čtení
|
19
25
|
test: Zkouška A
|
20
26
|
test_choices:
|
data/config/locales/da.yml
CHANGED
data/config/locales/en.yml
CHANGED
@@ -15,6 +15,12 @@ en:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Guided input
|
19
|
+
guided_help: Help text
|
20
|
+
guided_readonly: Disabled input
|
21
|
+
guided_rich: Guided rich input
|
22
|
+
guided_rich_help_html: HTML <strong>help</strong> text
|
23
|
+
guided_rich_readonly_html: HTML <strong>help</strong> text for disabled input
|
18
24
|
readonly_attribute: Readonly attribute
|
19
25
|
test: A test
|
20
26
|
test_choices:
|
data/config/locales/eo.yml
CHANGED
data/config/locales/es-MX.yml
CHANGED
@@ -15,6 +15,12 @@ es-MX:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Entrada guiada
|
19
|
+
guided_help: Texto de ayuda
|
20
|
+
guided_readonly: Entrada deshabilitada
|
21
|
+
guided_rich: Entrada guiada enriquecida
|
22
|
+
guided_rich_help_html: Texto de <strong>ayuda</strong> HTML
|
23
|
+
guided_rich_readonly_html: Texto de <strong>ayuda</strong> HTML para la entrada deshabilitada
|
18
24
|
readonly_attribute: Atributo de sólo lectura
|
19
25
|
test: Test A
|
20
26
|
test_choices:
|
data/config/locales/es-PY.yml
CHANGED
@@ -15,6 +15,12 @@ es-PY:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Entrada guiada
|
19
|
+
guided_help: Texto de ayuda
|
20
|
+
guided_readonly: Entrada deshabilitada
|
21
|
+
guided_rich: Entrada guiada enriquecida
|
22
|
+
guided_rich_help_html: Texto de <strong>ayuda</strong> HTML
|
23
|
+
guided_rich_readonly_html: Texto de <strong>ayuda</strong> HTML para la entrada deshabilitada
|
18
24
|
readonly_attribute: Atributo de sólo lectura
|
19
25
|
test: Test A
|
20
26
|
test_choices:
|
data/config/locales/es.yml
CHANGED
@@ -15,6 +15,12 @@ es:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Entrada guiada
|
19
|
+
guided_help: Texto de ayuda
|
20
|
+
guided_readonly: Entrada deshabilitada
|
21
|
+
guided_rich: Entrada guiada enriquecida
|
22
|
+
guided_rich_help_html: Texto de <strong>ayuda</strong> HTML
|
23
|
+
guided_rich_readonly_html: Texto de <strong>ayuda</strong> HTML para la entrada deshabilitada
|
18
24
|
readonly_attribute: Atributo de sólo lectura
|
19
25
|
test: Una prueba
|
20
26
|
test_choices:
|
data/config/locales/et.yml
CHANGED
data/config/locales/fi-plain.yml
CHANGED
@@ -15,6 +15,12 @@ fi-pl:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Ohjeistettu syöte
|
19
|
+
guided_help: Ohjeteksti
|
20
|
+
guided_readonly: Käytöstä poistettu syöte
|
21
|
+
guided_rich: Ohjeistettu rikas tekstisyöte
|
22
|
+
guided_rich_help_html: HTML <strong>ohjeteksti</strong>
|
23
|
+
guided_rich_readonly_html: Käytöstä poistettu HTML <strong>ohjeteksti</strong>
|
18
24
|
readonly_attribute: Vain luku -attribuutti
|
19
25
|
test: Testi
|
20
26
|
test_choices:
|
data/config/locales/fi.yml
CHANGED
@@ -15,6 +15,12 @@ fi:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Ohjeistettu syöte
|
19
|
+
guided_help: Ohjeteksti
|
20
|
+
guided_readonly: Käytöstä poistettu syöte
|
21
|
+
guided_rich: Ohjeistettu rikas tekstisyöte
|
22
|
+
guided_rich_help_html: HTML <strong>ohjeteksti</strong>
|
23
|
+
guided_rich_readonly_html: Käytöstä poistettu HTML <strong>ohjeteksti</strong>
|
18
24
|
readonly_attribute: Vain luku -attribuutti
|
19
25
|
test: Testi
|
20
26
|
test_choices:
|
data/config/locales/fr-CA.yml
CHANGED
@@ -15,6 +15,12 @@ fr-CA:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Entrée guidée
|
19
|
+
guided_help: Texte d'aide
|
20
|
+
guided_readonly: Entrée désactivée
|
21
|
+
guided_rich: Entrée riche guidée
|
22
|
+
guided_rich_help_html: Texte <strong>d'aide</strong> HTML
|
23
|
+
guided_rich_readonly_html: Texte <strong>d'aide</strong> HTML pour les entrées désactivées
|
18
24
|
readonly_attribute: Attribut en lecture seule
|
19
25
|
test: Un test
|
20
26
|
test_choices:
|
data/config/locales/fr.yml
CHANGED
@@ -15,6 +15,12 @@ fr:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: Entrée guidée
|
19
|
+
guided_help: Texte d'aide
|
20
|
+
guided_readonly: Entrée désactivée
|
21
|
+
guided_rich: Entrée riche guidée
|
22
|
+
guided_rich_help_html: Texte <strong>d'aide</strong> HTML
|
23
|
+
guided_rich_readonly_html: Texte <strong>d'aide</strong> HTML pour les entrées désactivées
|
18
24
|
readonly_attribute: Attribut en lecture seule
|
19
25
|
test: Un test
|
20
26
|
test_choices:
|
data/config/locales/hr.yml
CHANGED
data/config/locales/ja.yml
CHANGED
@@ -15,6 +15,12 @@ ja:
|
|
15
15
|
dummy:
|
16
16
|
settings:
|
17
17
|
global:
|
18
|
+
guided: ガイド付き入力
|
19
|
+
guided_help: ヘルプテキスト
|
20
|
+
guided_readonly: 無効化された入力
|
21
|
+
guided_rich: ガイド付きリッチ入力
|
22
|
+
guided_rich_help_html: HTML <strong>ヘルプ</strong> のテキスト
|
23
|
+
guided_rich_readonly_html: HTML <strong>ヘルプ</strong> の入力を無効にする
|
18
24
|
readonly_attribute: 読み取り専用属性
|
19
25
|
test: テスト
|
20
26
|
test_choices:
|
data/config/locales/ko.yml
CHANGED
data/config/locales/lb.yml
CHANGED
data/config/locales/lt.yml
CHANGED
@@ -1,2 +1,65 @@
|
|
1
1
|
---
|
2
2
|
lt:
|
3
|
+
activemodel:
|
4
|
+
attributes:
|
5
|
+
dummy_resource:
|
6
|
+
created_at: Sukurta
|
7
|
+
decidim_scope_id: Apimtis
|
8
|
+
field: Mano laukas
|
9
|
+
start_date: Pradžios data
|
10
|
+
title: Pavadinimas
|
11
|
+
translatable_text: Verčiamas tekstas
|
12
|
+
updated_at: Atnaujinta
|
13
|
+
decidim:
|
14
|
+
components:
|
15
|
+
dummy:
|
16
|
+
settings:
|
17
|
+
global:
|
18
|
+
guided: Vedama įvestis
|
19
|
+
guided_help: Pagalbos tekstas
|
20
|
+
guided_readonly: Išjungta įvestis
|
21
|
+
guided_rich: Vedama turtinga įvestis
|
22
|
+
guided_rich_help_html: HTML <strong>pagalbos</strong> tekstas
|
23
|
+
guided_rich_readonly_html: HTML <strong>pagalbos</strong>tekstas išjungtai įvesčiai
|
24
|
+
readonly_attribute: Tik skaitomas atributas
|
25
|
+
test: Bandymas
|
26
|
+
test_choices:
|
27
|
+
a: A pasirinkimas
|
28
|
+
b: B pasirinkimas
|
29
|
+
c: C pasirinkimas
|
30
|
+
test_options:
|
31
|
+
bar: Juosta
|
32
|
+
baz: Baz
|
33
|
+
foo: Foo
|
34
|
+
step:
|
35
|
+
endorsements_blocked: Pritarimai užblokuoti
|
36
|
+
endorsements_enabled: Pritarimai aktyvuoti
|
37
|
+
readonly_step_attribute: Tik skaitomas veiksmo atributas
|
38
|
+
test_options:
|
39
|
+
bar: Juosta
|
40
|
+
baz: Baz
|
41
|
+
foo: Foo
|
42
|
+
dummy:
|
43
|
+
admin:
|
44
|
+
exports:
|
45
|
+
dummies: Fiktyvūs elementai
|
46
|
+
gamification:
|
47
|
+
badges:
|
48
|
+
test:
|
49
|
+
conditions:
|
50
|
+
- Naudokite testinę aplinką.
|
51
|
+
description: Dalyviai šį ženklelį pelno kurdami testus.
|
52
|
+
description_another: Šis dalyvis sukūrė %{score} testus.
|
53
|
+
description_own: Jūs sukūrėte %{score} testus.
|
54
|
+
name: Testai
|
55
|
+
next_level_in: Parenkite dar %{score} testus ir pasiekite kitą lygį!
|
56
|
+
unearned_another: Šis dalyvis dar nesukūrė jokių testų.
|
57
|
+
unearned_own: Jūs dar nesukūrėte jokių testų.
|
58
|
+
resource_links:
|
59
|
+
test_link:
|
60
|
+
dummy_resource_dummy: Susijęs fiktyvus elementas
|
61
|
+
statistics:
|
62
|
+
bar: Bar
|
63
|
+
dummies_count_high: Daug fiktyvių elementų
|
64
|
+
dummies_count_medium: Vidutiniškai fiktyvių elementų
|
65
|
+
foo: Foo
|
data/config/locales/mt.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
oc:
|
data/config/locales/om-ET.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
data/config/locales/si-LK.yml
CHANGED
data/config/locales/so-SO.yml
CHANGED
data/config/locales/sw-KE.yml
CHANGED
data/config/locales/ti-ER.yml
CHANGED
data/config/locales/val-ES.yml
CHANGED
data/config/locales/vi.yml
CHANGED
data/config/locales/zh-TW.yml
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
Document ID;Document Type;Date of Birth;Full name;Full address;Postal Code;Mobile phone number;Email address
|
@@ -0,0 +1,22 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDuzCCAqOgAwIBAgIUK548SGgd4RimiJRsHG/eydDD7dMwDQYJKoZIhvcNAQEL
|
3
|
+
BQAwbDELMAkGA1UEBhMCRVUxEDAOBgNVBAgMB0R5c3RvcHkxETAPBgNVBAcMCEF0
|
4
|
+
bGFudGlzMRAwDgYDVQQKDAdEZWNpZGltMRIwEAYDVQQLDAlEZW1vY3JhY3kxEjAQ
|
5
|
+
BgNVBAMMCWxvY2FsaG9zdDAgFw0yMjA3MTMwOTQ5MTJaGA8zMDIxMTExMzA5NDkx
|
6
|
+
MlowbDELMAkGA1UEBhMCRVUxEDAOBgNVBAgMB0R5c3RvcHkxETAPBgNVBAcMCEF0
|
7
|
+
bGFudGlzMRAwDgYDVQQKDAdEZWNpZGltMRIwEAYDVQQLDAlEZW1vY3JhY3kxEjAQ
|
8
|
+
BgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQ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9Zi5b0ajVzAivmUKXg0Q0FOVS7DUbaMynNHqWIu65fPxsZObweFg
|
18
|
+
aEmB0s6vjgdz+UTBqDIRudNYpRiQf1Sn6Sg09ax/aIWIGB3IQ7kTv6u1QfKX1sp2
|
19
|
+
X3N4mqlytQKBgDVAma5g1B23imFPUwV+VmyWqfH36kY3XVePQxXmF4UlzGIUETFB
|
20
|
+
m9rhe9y5B9Br0LRj+2h6sEEkrfu3XMdC+SwjbJVX852qLBRIPlvZlRJVFRjG74KV
|
21
|
+
bTn5ts+kVy/2FighMGhK2G8BbwqGKZ7psyMnPu1tHzLzEbSv4IRG6ZPBAoGAVJiY
|
22
|
+
+Du+bwXaTvI5+VfDbH9IFZcB7D9DFTejiip+nK2GxG+ZxLeWxyH6QMmxnastLmPK
|
23
|
+
Mhsz9SxTS46kxneAxC4xDG2M6mZcQXNgmxd6HNOdRmYhwY0VlX24S1ryaxrnCSt1
|
24
|
+
CG6pWm1oraQRoKxLMFfY04N4HQ7YtEA+I1OzP5UCgYEAudD3jeGWODXvBNitENpG
|
25
|
+
TmZQQd1LVdj7WNxHgKaQg+OLPPIxf/2Po5ml7J5v1nnfo78bN9TvIs3XynxBRrRS
|
26
|
+
3ZnbN0N/vnrmQTFlfpNnnTdKEmZH7QtB+459yCYNiLAHGpzHSLnabBwHN6yP/+/+
|
27
|
+
SN2zDne6Od2PySmsj6Xo1Go=
|
28
|
+
-----END PRIVATE KEY-----
|
@@ -8,7 +8,7 @@ module Decidim
|
|
8
8
|
def switch_to_host(host = "lvh.me")
|
9
9
|
raise "Can't switch to a custom host unless it really exists. Use `whatever.lvh.me` as a workaround." unless /lvh\.me$/.match?(host)
|
10
10
|
|
11
|
-
app_host = (host ? "
|
11
|
+
app_host = (host ? "#{protocol}://#{host}" : nil)
|
12
12
|
Capybara.app_host = app_host
|
13
13
|
end
|
14
14
|
|
@@ -17,7 +17,13 @@ module Decidim
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def switch_to_secure_context_host
|
20
|
-
Capybara.app_host = "
|
20
|
+
Capybara.app_host = "#{protocol}://localhost"
|
21
|
+
end
|
22
|
+
|
23
|
+
def protocol
|
24
|
+
return "https" if ENV["TEST_SSL"]
|
25
|
+
|
26
|
+
"http"
|
21
27
|
end
|
22
28
|
end
|
23
29
|
end
|
@@ -31,6 +37,7 @@ Capybara.register_driver :headless_chrome do |app|
|
|
31
37
|
else
|
32
38
|
"--window-size=1920,1080"
|
33
39
|
end
|
40
|
+
options.args << "--ignore-certificate-errors" if ENV["TEST_SSL"]
|
34
41
|
Capybara::Selenium::Driver.new(
|
35
42
|
app,
|
36
43
|
browser: :chrome,
|
@@ -38,7 +45,16 @@ Capybara.register_driver :headless_chrome do |app|
|
|
38
45
|
)
|
39
46
|
end
|
40
47
|
|
41
|
-
|
48
|
+
1.step do
|
49
|
+
port = rand(5000..6999)
|
50
|
+
begin
|
51
|
+
Socket.tcp("127.0.0.1", port, connect_timeout: 5).close
|
52
|
+
rescue Errno::ECONNREFUSED
|
53
|
+
# When connection is refused, the port is available for use.
|
54
|
+
Capybara.server_port = port
|
55
|
+
break
|
56
|
+
end
|
57
|
+
end
|
42
58
|
|
43
59
|
# In order to work with PWA apps, Chrome can't be run in headless mode, and requires
|
44
60
|
# setting up special prefs and flags
|
@@ -81,9 +97,18 @@ Capybara.register_driver :iphone do |app|
|
|
81
97
|
)
|
82
98
|
end
|
83
99
|
|
84
|
-
|
85
|
-
|
86
|
-
|
100
|
+
server_options = { Silent: true, queue_requests: false }
|
101
|
+
if ENV["TEST_SSL"]
|
102
|
+
dev_gem = Bundler.load.specs.find { |spec| spec.name == "decidim-dev" }
|
103
|
+
cert_dir = "#{dev_gem.full_gem_path}/lib/decidim/dev/assets"
|
104
|
+
server_options.merge!(
|
105
|
+
Host: "ssl://#{Capybara.server_host}:#{Capybara.server_port}?key=#{cert_dir}/ssl-key.pem&cert=#{cert_dir}/ssl-cert.pem"
|
106
|
+
)
|
107
|
+
Capybara.asset_host = "https://localhost:3000"
|
108
|
+
else
|
109
|
+
Capybara.asset_host = "http://localhost:3000"
|
110
|
+
end
|
111
|
+
Capybara.server = :puma, server_options
|
87
112
|
|
88
113
|
Capybara.server_errors = [SyntaxError, StandardError]
|
89
114
|
|
@@ -95,12 +120,17 @@ RSpec.configure do |config|
|
|
95
120
|
switch_to_default_host
|
96
121
|
domain = (try(:organization) || try(:current_organization))&.host
|
97
122
|
if domain
|
123
|
+
# Javascript sets the cookie also for all subdomains but localhost is a
|
124
|
+
# special case.
|
125
|
+
domain = ".#{domain}" unless domain == "localhost"
|
98
126
|
page.driver.browser.execute_cdp(
|
99
127
|
"Network.setCookie",
|
100
128
|
domain: domain,
|
101
129
|
name: Decidim.consent_cookie_name,
|
102
130
|
value: { essential: true }.to_json,
|
103
|
-
path: "/"
|
131
|
+
path: "/",
|
132
|
+
expires: 1.day.from_now.to_i,
|
133
|
+
same_site: "Lax"
|
104
134
|
)
|
105
135
|
end
|
106
136
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Capybara
|
4
|
-
module
|
5
|
-
# Update
|
6
|
-
def
|
4
|
+
module DataConsent
|
5
|
+
# Update data consent
|
6
|
+
def data_consent(categories = "all", options = {})
|
7
7
|
visit decidim.root_path if options[:visit_root]
|
8
8
|
|
9
9
|
dialog_present = begin
|
10
|
-
find("#
|
10
|
+
find("#dc-dialog-wrapper")
|
11
11
|
rescue Capybara::ElementNotFound => _e
|
12
12
|
false
|
13
13
|
end
|
@@ -20,16 +20,16 @@ module Capybara
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
if [true, "all"].include?(
|
23
|
+
if [true, "all"].include?(categories)
|
24
24
|
click_button "Accept all"
|
25
|
-
elsif
|
26
|
-
|
27
|
-
within "[data-id='#{
|
25
|
+
elsif categories.is_a?(Array)
|
26
|
+
categories.each do |category|
|
27
|
+
within "[data-id='#{category}']" do
|
28
28
|
find(".switch-paddle").click
|
29
29
|
end
|
30
30
|
end
|
31
31
|
click_button "Save settings"
|
32
|
-
elsif [false, "essential"].include?(
|
32
|
+
elsif [false, "essential"].include?(categories)
|
33
33
|
click_button "Accept only essential"
|
34
34
|
end
|
35
35
|
end
|
@@ -37,5 +37,5 @@ module Capybara
|
|
37
37
|
end
|
38
38
|
|
39
39
|
RSpec.configure do |config|
|
40
|
-
config.include Capybara::
|
40
|
+
config.include Capybara::DataConsent, type: :system
|
41
41
|
end
|
@@ -39,6 +39,18 @@ module Decidim::ComponentTestHelpers
|
|
39
39
|
def have_admin_callout(text)
|
40
40
|
have_selector(".callout--full", text: text)
|
41
41
|
end
|
42
|
+
|
43
|
+
def stub_get_request_with_format(rq_url, rs_format)
|
44
|
+
stub_request(:get, rq_url)
|
45
|
+
.with(
|
46
|
+
headers: {
|
47
|
+
"Accept" => "*/*",
|
48
|
+
"Accept-Encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3",
|
49
|
+
"User-Agent" => "Ruby"
|
50
|
+
}
|
51
|
+
)
|
52
|
+
.to_return(status: 200, body: "", headers: { content_type: rs_format })
|
53
|
+
end
|
42
54
|
end
|
43
55
|
|
44
56
|
RSpec.configure do |config|
|
data/lib/decidim/dev/version.rb
CHANGED
data/lib/tasks/generators.rake
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.27.0
|
4
|
+
version: 0.27.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-09-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capybara
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.27.0
|
35
|
+
version: 0.27.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.27.0
|
42
|
+
version: 0.27.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: factory_bot_rails
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -466,6 +466,7 @@ files:
|
|
466
466
|
- config/locales/mt.yml
|
467
467
|
- config/locales/nl.yml
|
468
468
|
- config/locales/no.yml
|
469
|
+
- config/locales/oc-FR.yml
|
469
470
|
- config/locales/om-ET.yml
|
470
471
|
- config/locales/pl.yml
|
471
472
|
- config/locales/pt-BR.yml
|
@@ -515,6 +516,7 @@ files:
|
|
515
516
|
- lib/decidim/dev/assets/import_proposals.xlsx
|
516
517
|
- lib/decidim/dev/assets/import_proposals_broken.csv
|
517
518
|
- lib/decidim/dev/assets/import_voting_census.csv
|
519
|
+
- lib/decidim/dev/assets/import_voting_census_only_headers.csv
|
518
520
|
- lib/decidim/dev/assets/import_voting_census_with_ballot_styles.csv
|
519
521
|
- lib/decidim/dev/assets/import_voting_census_without_headers.csv
|
520
522
|
- lib/decidim/dev/assets/invalid.jpeg
|
@@ -532,6 +534,8 @@ files:
|
|
532
534
|
- lib/decidim/dev/assets/public_key.jwk
|
533
535
|
- lib/decidim/dev/assets/public_key2.jwk
|
534
536
|
- lib/decidim/dev/assets/public_key3.jwk
|
537
|
+
- lib/decidim/dev/assets/ssl-cert.pem
|
538
|
+
- lib/decidim/dev/assets/ssl-key.pem
|
535
539
|
- lib/decidim/dev/assets/test_excel.xlsx
|
536
540
|
- lib/decidim/dev/assets/verify_user_groups.csv
|
537
541
|
- lib/decidim/dev/common_rake.rb
|
@@ -560,7 +564,7 @@ files:
|
|
560
564
|
- lib/decidim/dev/test/rspec_support/confirmation_helpers.rb
|
561
565
|
- lib/decidim/dev/test/rspec_support/content_processing.rb
|
562
566
|
- lib/decidim/dev/test/rspec_support/controller_example_group.rb
|
563
|
-
- lib/decidim/dev/test/rspec_support/
|
567
|
+
- lib/decidim/dev/test/rspec_support/data_consent.rb
|
564
568
|
- lib/decidim/dev/test/rspec_support/dynamic_attach.rb
|
565
569
|
- lib/decidim/dev/test/rspec_support/factory_bot.rb
|
566
570
|
- lib/decidim/dev/test/rspec_support/frontend.rb
|
@@ -606,9 +610,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
606
610
|
version: '3.0'
|
607
611
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
608
612
|
requirements:
|
609
|
-
- - "
|
613
|
+
- - ">="
|
610
614
|
- !ruby/object:Gem::Version
|
611
|
-
version:
|
615
|
+
version: '0'
|
612
616
|
requirements: []
|
613
617
|
rubygems_version: 3.2.22
|
614
618
|
signing_key:
|