Skip to content

Commit

Permalink
Fix smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
CatalinVoineag committed Dec 16, 2024
1 parent 91a1081 commit 862855a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/smoke/candidate_login_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
RSpec.describe 'Smoke test', :smoke, type: :feature do
it 'allows new account creation' do
given_the_one_login_feature_flag_is_inactive
when_i_go_to_the_account_creation_page
when_i_choose_to_create_an_account
then_i_can_create_an_account
Expand All @@ -9,6 +10,10 @@
then_i_have_been_sent_an_email
end

def given_the_one_login_feature_flag_is_inactive
FeatureFlag.activate(:one_login_candidate_sign_in)
end

def when_i_go_to_the_account_creation_page
visit '/candidate/account'
end
Expand Down

0 comments on commit 862855a

Please sign in to comment.