-
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
FYST-1122 Part 2: Update statefile tax year to 2024 #4994
base: FYST-1122-update-az-schema-to-ty-24
Are you sure you want to change the base?
Changes from 7 commits
15fa86d
d7fff66
fbc72ad
907e03e
8fa1a2d
b23b0d0
79b70e7
ce74d66
e43af6e
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
# | ||
FactoryBot.define do | ||
factory :az322_contribution do | ||
date_of_contribution_year { "2023" } | ||
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. update year dynamically using the rails config here |
||
date_of_contribution_year { "2024" } | ||
date_of_contribution_month { "3" } | ||
date_of_contribution_day { "4" } | ||
made_contribution { "yes" } | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,60 +147,60 @@ | |
state_file_az_intake: intake, | ||
charity_code: "22345", | ||
charity_name: "Heartland", | ||
date_of_contribution: Date.parse("August 22 2023") | ||
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. dynamically set the year |
||
date_of_contribution: Date.parse("August 22 2024") | ||
create :az321_contribution, | ||
amount: 234.89, | ||
state_file_az_intake: intake, | ||
charity_code: "25544", | ||
charity_name: "Crumbs and Whiskers", | ||
date_of_contribution: Date.parse("July 31 2023") | ||
date_of_contribution: Date.parse("July 31 2024") | ||
create :az321_contribution, | ||
amount: 234.89, | ||
state_file_az_intake: intake, | ||
charity_code: "25999", | ||
charity_name: "The Flying Seagull Project", | ||
date_of_contribution: Date.parse("June 1 2023") | ||
date_of_contribution: Date.parse("June 1 2024") | ||
create :az321_contribution, | ||
amount: 234.89, | ||
state_file_az_intake: intake, | ||
charity_code: "27661", | ||
charity_name: "Frogs Are Green", | ||
date_of_contribution: Date.parse("January 15 2023") | ||
date_of_contribution: Date.parse("January 15 2024") | ||
end | ||
end | ||
|
||
trait :with_az322_contributions do | ||
after(:build) do |intake| | ||
create(:az322_contribution, | ||
date_of_contribution: '2023-03-04', | ||
date_of_contribution: '2024-03-04', | ||
ctds_code: '123456789', | ||
school_name: 'School A', | ||
district_name: 'District A', | ||
amount: 100, | ||
state_file_az_intake: intake) | ||
create(:az322_contribution, | ||
date_of_contribution: '2023-02-01', | ||
date_of_contribution: '2024-02-01', | ||
ctds_code: '123456789', | ||
school_name: 'School B', | ||
district_name: 'District B', | ||
amount: 200, | ||
state_file_az_intake: intake) | ||
create(:az322_contribution, | ||
date_of_contribution: '2023-03-01', | ||
date_of_contribution: '2024-03-01', | ||
ctds_code: '123456789', | ||
school_name: 'School C', | ||
district_name: 'District C', | ||
amount: 300, | ||
state_file_az_intake: intake) | ||
create(:az322_contribution, | ||
date_of_contribution: '2023-04-01', | ||
date_of_contribution: '2024-04-01', | ||
ctds_code: '123456789', | ||
school_name: 'School D', | ||
district_name: 'District D', | ||
amount: 400, | ||
state_file_az_intake: intake) | ||
create(:az322_contribution, | ||
date_of_contribution: '2023-05-01', | ||
date_of_contribution: '2024-05-01', | ||
ctds_code: '123456789', | ||
school_name: 'School E', | ||
district_name: 'District E', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,15 +47,15 @@ | |
end | ||
click_on I18n.t("general.continue") | ||
|
||
expect(page).to have_text I18n.t("state_file.questions.nyc_residency.edit.title", year: 2023) | ||
choose "I did not live in New York City at all in 2023" | ||
expect(page).to have_text I18n.t("state_file.questions.nyc_residency.edit.title", year: 2024) | ||
choose "I did not live in New York City at all in 2024" | ||
choose I18n.t("general.affirmative") | ||
click_on I18n.t("general.continue") | ||
|
||
expect(page).to have_text I18n.t("state_file.questions.eligibility_offboarding.edit.ineligible_reason.nyc_maintained_home") | ||
click_on "Go back" | ||
expect(page).to have_text I18n.t("state_file.questions.nyc_residency.edit.title", year: 2023) | ||
choose "I lived in New York City all year in 2023" | ||
expect(page).to have_text I18n.t("state_file.questions.nyc_residency.edit.title", year: 2024) | ||
choose "I lived in New York City all year in 2024" | ||
click_on I18n.t("general.continue") | ||
|
||
expect(page).to have_text I18n.t("state_file.questions.ny_county.edit.title", filing_year: MultiTenantService.statefile.current_tax_year) | ||
|
@@ -153,12 +153,6 @@ | |
end | ||
|
||
context "AZ", :flow_explorer_screenshot, js: true do | ||
before do | ||
# TODO: remove this stub when we update Rails.configuration.statefile_current_tax_year to 2024 | ||
allow(Rails.configuration).to receive(:statefile_current_tax_year).and_return 2024 | ||
stub_const('DateAccessible::TAX_YEAR', Date.new(2024)) | ||
end | ||
|
||
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. this was the "fix" i was implementing to get the az feature specs to pass, which didn't work, so taking it out in this PR |
||
it "has content", required_schema: "az" do | ||
visit "/" | ||
click_on "Start Test AZ" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"familyAndHousehold": [], | ||
"filers": [ | ||
{ | ||
"firstName": "Susan", | ||
"middleInitial": "", | ||
"lastName": "Miranda", | ||
"dateOfBirth": "1980-01-01", | ||
"isPrimaryFiler": true, | ||
"tin": "400-00-1032" | ||
} | ||
] | ||
} |
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.
not sure where we can get this