Skip to content

Commit

Permalink
spec fixes for isngle filer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spompea-cfa committed Dec 16, 2024
1 parent 151936e commit c0365f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
require "rails_helper"

RSpec.describe Questions::DemographicSpouseEthnicityController do
describe "#update" do
# Disable for TY2024
xdescribe "#update" do
context "with valid params" do
let(:params) do
{
Expand Down
4 changes: 1 addition & 3 deletions spec/features/web_intake/new_single_filer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -446,15 +446,13 @@ def intake_after_triage_up_to_documents(intake)
check "Asian"
check "White"
click_on "Continue"
expect(page).to have_text("What is your ethnicity?")
choose "Not Hispanic or Latino"
click_on "Submit"

expect(page).to have_selector("h1", text: "Free tax filing")

# going back to another page after submit redirects to client login, does not reset current_step
visit "/questions/work-situations"
expect(intake.reload.current_step).to end_with("/questions/demographic-primary-ethnicity")
expect(intake.reload.current_step).to end_with("/questions/demographic-primary-race")
expect(page).to have_selector("h1", text: I18n.t("portal.client_logins.new.title"))
end
end
Expand Down

0 comments on commit c0365f3

Please sign in to comment.