Skip to content
649 changes: 537 additions & 112 deletions app/services/analytics_events.rb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'rails_helper'

RSpec.describe TwoFactorAuthentication::PersonalKeyVerificationController,
allowed_extra_analytics: [:*] do
RSpec.describe TwoFactorAuthentication::PersonalKeyVerificationController do
let(:personal_key) { { personal_key: 'foo' } }
let(:payload) { { personal_key_form: personal_key } }

Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/users/passwords_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe Users::PasswordsController, allowed_extra_analytics: [:*] do
RSpec.describe Users::PasswordsController do
context 'user visits edit password page' do
let(:user) { create(:user) }
before do
Expand Down
2 changes: 1 addition & 1 deletion spec/features/account_email_language_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe 'Account email language', allowed_extra_analytics: [:*] do
RSpec.describe 'Account email language' do
let(:user) { user_with_2fa }

let(:original_email_language) { 'es' }
Expand Down
2 changes: 1 addition & 1 deletion spec/features/event_disavowal_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.feature 'disavowing an action', allowed_extra_analytics: [:*] do
RSpec.feature 'disavowing an action' do
let(:user) { create(:user, :fully_registered, :with_personal_key) }

context 'with aggregated sign-in notifications enabled' do
Expand Down
2 changes: 1 addition & 1 deletion spec/features/idv/doc_auth/agreement_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.feature 'agreement step error checking', allowed_extra_analytics: [:*] do
RSpec.feature 'agreement step error checking' do
include DocAuthHelper
context 'skipping hybrid_handoff step', :js, driver: :headless_chrome_mobile do
let(:fake_analytics) { FakeAnalytics.new }
Expand Down
2 changes: 1 addition & 1 deletion spec/features/idv/doc_auth/welcome_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.feature 'welcome step', allowed_extra_analytics: [:*] do
RSpec.feature 'welcome step' do
include IdvHelper
include DocAuthHelper

Expand Down
2 changes: 1 addition & 1 deletion spec/features/idv/pending_profile_password_reset_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.describe 'Resetting password with a pending profile', allowed_extra_analytics: [:*] do
RSpec.describe 'Resetting password with a pending profile' do
include OidcAuthHelper

let(:sp_name) { 'Test SP' }
Expand Down
2 changes: 1 addition & 1 deletion spec/features/legacy_passwords_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.feature 'legacy passwords', allowed_extra_analytics: [:*] do
RSpec.feature 'legacy passwords' do
scenario 'signing in with a password digested by the uak verifier updates the digest' do
user = create(:user, :fully_registered)
user.update!(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'rails_helper'

RSpec.feature 'user interacts with 2FA across multiple browser tabs',
allowed_extra_analytics: [:*] do
RSpec.feature 'user interacts with 2FA across multiple browser tabs' do
include SpAuthHelper
include SamlAuthHelper

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.feature 'Signing in via one-time use personal key', allowed_extra_analytics: [:*] do
RSpec.feature 'Signing in via one-time use personal key' do
it 'destroys old key, does not offer new one' do
user = create(
:user, :fully_registered, :with_phone, :with_personal_key,
Expand Down
2 changes: 1 addition & 1 deletion spec/features/users/sign_in_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.feature 'Sign in', allowed_extra_analytics: [:*] do
RSpec.feature 'Sign in' do
include SessionTimeoutWarningHelper
include ActionView::Helpers::DateHelper
include PersonalKeyHelper
Expand Down
2 changes: 1 addition & 1 deletion spec/features/users/user_edit_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.feature 'User edit', allowed_extra_analytics: [:*] do
RSpec.feature 'User edit' do
let(:user) { create(:user, :fully_registered) }

context 'editing password' do
Expand Down
2 changes: 1 addition & 1 deletion spec/features/visitors/i18n_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rails_helper'

RSpec.feature 'Internationalization', allowed_extra_analytics: [:*] do
RSpec.feature 'Internationalization' do
context 'visit homepage with no locale set' do
it 'displays a header in the default locale' do
visit root_path
Expand Down
2 changes: 2 additions & 0 deletions spec/forms/idv/api_image_upload_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,8 @@
extra: {
pii_like_keypaths: pii_like_keypaths,
attention_with_barcode: false,
id_issued_status: 'missing',
id_expiration_status: 'missing',
},
)
end
Expand Down