Skip to content

Commit

Permalink
Undo changes to application_system_test_case
Browse files Browse the repository at this point in the history
  • Loading branch information
dem4ron committed Dec 2, 2024
1 parent edfa826 commit 92e30c4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/system/components/seniority_survey_modal_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
require "application_system_test_case"

module Components
class SenioritySurveyModalTest < ApplicationSystemTestCase
test "shows it on dashboard page" do
user = create :user, seniority: nil
use_capybara_host do
Exercism.without_bullet do
sign_in!(user)
visit dashboard_path

assert_text "How experienced a developer are you?"
end
end
end

# TODO: check why this doesn't fail
test "does not show if seniority is provided -- this should fail" do
user = create :user, seniority: :mid

use_capybara_host do
Exercism.without_bullet do
sign_in!(user)
visit dashboard_path

assert_text "How experienced a developer are you?"
end
end
end
end
end

0 comments on commit 92e30c4

Please sign in to comment.