Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jul 29, 2024
1 parent b91657e commit 02fb48b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec/features/people_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -316,5 +316,15 @@ def add_language(language)
visit person_path(longmax)
expect(page).to have_selector('p.alert.alert-info.d-flex.justify-content-between', text: I18n.t('profile.no_skills_rated_msg'))
end

it 'should delete person' do
visit person_path(longmax)
accept_confirm do
click_link("Löschen", href: person_path(longmax))
end
expect(page).to have_selector('.alert', text: "Person Longmax Smith wurde erfolgreich gelöscht.")
end


end
end

0 comments on commit 02fb48b

Please sign in to comment.