-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nj 125 income editing #5288
base: main
Are you sure you want to change the base?
Nj 125 income editing #5288
Changes from all commits
be6ee8c
c4b0a65
b04f37a
aaaa000
46f7b6d
8848c80
026f17b
2d736b0
89fcc1a
bf0927f
60e06ab
505c8a8
37bdf9c
648e1ae
a74cca3
c1192ca
b0ddea4
850a75d
f8465ab
1b36583
71bd8d5
1c6ba7d
5ac1833
fc59a55
496b44f
609969e
d23cc09
7bb59ea
34db50e
2826eda
ea26a0c
52a2faf
fd8644f
92cc4ee
d8ba042
57ceb03
741c76c
0bdbedf
471d383
2876f29
c28f4cb
a857576
e52ac21
341250b
aaf6fa3
1c199d7
b3b80d9
5e6ce7e
92dc749
62f04eb
4da0204
de323eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,4 +198,4 @@ | |
end | ||
end | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
require "rails_helper" | ||
|
||
RSpec.feature "Income Review", active_job: true do | ||
include StateFileIntakeHelper | ||
|
||
before do | ||
allow_any_instance_of(Routes::StateFileDomain).to receive(:matches?).and_return(true) | ||
end | ||
|
||
context "NJ", :flow_explorer_screenshot, js: true do | ||
def advance_to_data_transfer | ||
visit "/" | ||
click_on "Start Test NJ" | ||
click_on "Get Started", id: "firstCta" | ||
click_on I18n.t("general.continue") | ||
step_through_initial_authentication(contact_preference: :email) | ||
check "Text message" | ||
fill_in "Your phone number", with: "+12025551212" | ||
click_on "Continue" | ||
click_on I18n.t("general.accept") | ||
click_on I18n.t("state_file.questions.terms_and_conditions.edit.accept") | ||
end | ||
|
||
it( | ||
"displays review and edit pages with w2s, unemployment, and social security income", | ||
required_schema: "nj" | ||
) do | ||
advance_to_data_transfer | ||
|
||
step_through_df_data_transfer("Transfer Zeus box 14") | ||
|
||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.title") | ||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.w2s_title") | ||
|
||
within '#form1099gs' do | ||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.unemployment_title") | ||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.no_info_needed_nj") | ||
end | ||
|
||
within '#formssa1099s' do | ||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.ssa_title") | ||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.no_info_needed_nj") | ||
end | ||
|
||
click_on I18n.t("state_file.questions.income_review.edit.review_and_edit_state_info") | ||
|
||
# STPICKUP 250 | ||
# UIWFSWF 350 | ||
# UIHCWD 450 | ||
# FLI 550 | ||
|
||
expect(page).to have_field('state_file_w2_box14_ui_wf_swf', with: '350.0') | ||
expect(page).to have_field('state_file_w2_box14_fli', with: '550.0') | ||
expect(page).to have_field('state_file_w2_employer_state_id_num', with: '12345') | ||
expect(page).to have_field('state_file_w2_state_wages_amount', with: '12345.0') | ||
expect(page).to have_field('state_file_w2_state_income_tax_amount', with: '500.0') | ||
expect(page).to have_button("What should I put in Box 14?") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [PEBBLE] Original tests in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. true - will make sure that everything that was tested before is still covered... |
||
end | ||
|
||
it "displays with investment income", required_schema: "nj" do | ||
advance_to_data_transfer | ||
|
||
step_through_df_data_transfer("Transfer Streep single inv limit") | ||
|
||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.title") | ||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.w2s_title") | ||
|
||
within '#form1099ints' do | ||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.interest_income_title") | ||
expect(page).to have_text I18n.t("state_file.questions.income_review.edit.no_info_needed") | ||
end | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why isn't this one changing to
"UIWFSWF"
? Is it possible to change and then we won't need to remove the_
inreturn_w2.rb
submission builder?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh good catch, will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually decided to end up keeping this, because it all maps back to the DB. It could be renamed, but would require a db migration to rename the field there. (And there were about 70 uses of this throughout the app so I didn't want this diff to grow). And it is only important to not have underscores in the XML alone. If we still want to do that db field name change and related rename I'm not against it but a follow-up would be better in my opinion.