-
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-1200 Update navigation for editing income forms from final review page #5026
FYST-1200 Update navigation for editing income forms from final review page #5026
Conversation
…me-forms-from-final-review-page
…me-forms-from-final-review-page
Heroku app: https://gyr-review-app-5026-b282f6b416db.herokuapp.com/ |
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 guess fundamentally I'm trying to understand when you'd use the ReturnToReviewConcern vs not given the unemployment_controller
vs retirement_controller
include StateFileIntakeHelper | ||
|
||
before do | ||
allow_any_instance_of(Routes::StateFileDomain).to receive(:matches?).and_return(true) |
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 see this in our feature specs but am unsure what this is supposed to accomplish, although the tests do break when this is removed - would love to understand what this is doing.
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.
this tells the spec when we want to go to /
location it's supposed to go to the statefile domain (not gyr which is default?)
|
||
# W2 edit page | ||
expect(page).to have_text strip_html_tags(I18n.t("state_file.questions.w2.edit.instructions_1_html", employer: intake.state_file_w2s.first.employer_name)) | ||
fill_in strip_html_tags(I18n.t("state_file.questions.w2.edit.box15_html")), with: "987654321" |
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.
can we confirm this value was successfully updated?
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.
we could but i don't think of this test as being the place to cover that. if they w2 page doesn't work that should be caught in the form spec. i could actually just delete this line because the point of this test is to see that clicking continue takes you to the right place?
def prev_path | ||
income_review_or_super_path | ||
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.
this is for when they click "go back" so they don't end up in the middle of the flow after coming from the review page
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.
🚀 thanks for going through this with me! good as long as the specs pass
…n-for-editing-income-forms-from-final-review-page
Link to pivotal/JIRA issue
Is PM acceptance required? (delete one)
Reminder: merge main into this branch and get green tests before merging to main
What was done?
These pages do not appear in the intake flow. The only way to get to them is from income review and they only lead back to income review.
These pages appear in the intake flow are can also be accessed from income review, so there are 2 "continue" mechanisms: one to get to the next step in intake and one to get back to the review page
review_page_spec
should have a comprehensive overview of all the paths in and out of editing income forms from reviewstep_through_eligibility_screener
to handle all states so that I could use it in my feature spec loop; I went ahead and used it incomplete_intake_spec
tooHow to test?