Skip to content

Commit

Permalink
Add failing regression spec for email language regression
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Sep 4, 2024
1 parent 440ee98 commit 7f4c413
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/features/visitors/email_language_preference_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@
)
expect(field).to be_present
expect(field[:lang]).to eq(I18n.default_locale.to_s)
fields = [field]
(I18n.available_locales - [I18n.default_locale]).each do |locale|
field = page.find_field(t("i18n.locale.#{locale}"))
expect(field).to be_present
expect(field[:lang]).to eq(locale.to_s)
fields << field
end
expect(fields).to be_logically_grouped(t('forms.registration.labels.email_language'))

visit sign_up_email_path(:es)

Expand Down

0 comments on commit 7f4c413

Please sign in to comment.