Skip to content

Commit

Permalink
Renamed variable (#11102)
Browse files Browse the repository at this point in the history
* Renamed variable

* Changed value to non mutation of variable in all occurences, resolve PR comments

* changelog: internal, code format, changed variable name
  • Loading branch information
AShukla-GSA authored Aug 19, 2024
1 parent 0c0e643 commit 08a2287
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions spec/features/idv/doc_auth/document_capture_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
message = strip_tags(t('doc_auth.errors.doc_type_not_supported_heading'))
expect(page).to have_content(message)
detail_message = strip_tags(t('doc_auth.errors.doc.doc_type_check'))
security_message = strip_tags(
warning_message = strip_tags(
t(
'idv.failure.attempts_html',
count: IdentityConfig.store.doc_auth_max_attempts - 1,
),
)
expect(page).to have_content(detail_message)
expect(page).to have_content(security_message)
expect(page).to have_content(warning_message)
expect(page).to have_current_path(idv_document_capture_path)
click_try_again
expect(page).to have_current_path(idv_document_capture_path)
Expand Down Expand Up @@ -1014,13 +1014,13 @@
message = strip_tags(t('doc_auth.errors.selfie_not_live_or_poor_quality_heading'))
expect(page).to have_content(message)
detail_message = strip_tags(t('doc_auth.errors.alerts.selfie_not_live_or_poor_quality'))
security_message = strip_tags(
warning_message = strip_tags(
t(
'idv.failure.attempts_html',
count: IdentityConfig.store.doc_auth_max_attempts - 1,
),
)
expect(page).to have_content(detail_message << "\n" << security_message)
expect(page).to have_content("#{detail_message}\n#{warning_message}")
review_issues_header = strip_tags(
t('doc_auth.errors.selfie_not_live_or_poor_quality_heading'),
)
Expand Down Expand Up @@ -1052,13 +1052,13 @@
message = strip_tags(t('doc_auth.errors.selfie_not_live_or_poor_quality_heading'))
expect(page).to have_content(message)
detail_message = strip_tags(t('doc_auth.errors.alerts.selfie_not_live_or_poor_quality'))
security_message = strip_tags(
warning_message = strip_tags(
t(
'idv.failure.attempts_html',
count: IdentityConfig.store.doc_auth_max_attempts - 1,
),
)
expect(page).to have_content(detail_message << "\n" << security_message)
expect(page).to have_content("#{detail_message}\n#{warning_message}")
review_issues_header = strip_tags(
t('doc_auth.errors.selfie_not_live_or_poor_quality_heading'),
)
Expand Down Expand Up @@ -1090,13 +1090,13 @@
message = strip_tags(t('doc_auth.errors.selfie_fail_heading'))
expect(page).to have_content(message)
detail_message = strip_tags(t('doc_auth.errors.general.selfie_failure'))
security_message = strip_tags(
warning_message = strip_tags(
t(
'idv.failure.attempts_html',
count: IdentityConfig.store.doc_auth_max_attempts - 1,
),
)
expect(page).to have_content(detail_message << "\n" << security_message)
expect(page).to have_content("#{detail_message}\n#{warning_message}")
review_issues_header = strip_tags(
t('doc_auth.errors.selfie_fail_heading'),
)
Expand Down Expand Up @@ -1129,14 +1129,13 @@
message = strip_tags(t('doc_auth.errors.selfie_not_live_or_poor_quality_heading'))
expect(page).to have_content(message)
detail_message = strip_tags(t('doc_auth.errors.alerts.selfie_not_live_or_poor_quality'))
security_message = strip_tags(
warning_message = strip_tags(
t(
'idv.failure.attempts_html',
count: IdentityConfig.store.doc_auth_max_attempts - 1,
),
)

expect(page).to have_content(detail_message << "\n" << security_message)
expect(page).to have_content("#{detail_message}\n#{warning_message}")
review_issues_header = strip_tags(
t('doc_auth.errors.selfie_not_live_or_poor_quality_heading'),
)
Expand Down

0 comments on commit 08a2287

Please sign in to comment.