Commit 9b74a1f3 authored by Hussain Kashef's avatar Hussain Kashef

fixed system tests

parent 81018fdb
Pipeline #52909 failed with stage
in 37 minutes
......@@ -53,8 +53,8 @@ class AssignmentTerminationIndexTest < ApplicationSystemTestCase
test 'filtering_for_only_verified' do
visit terminated_index_assignments_path
click_link 'Quittiert: Unquittiert'
click_link exact_text: 'Quittiert'
click_link 'Quittiert: Quittiert'
click_link exact_text: 'Unquittiert'
visit current_url
refute_text termination_index_table_text(@un_submitted)
refute_text termination_index_table_text(@submitted)
......@@ -116,6 +116,8 @@ class AssignmentTerminationIndexTest < ApplicationSystemTestCase
test 'assignment_quittieren_creates_a_assignment_log_record_from_assignment' do
visit terminated_index_assignments_path
click_link 'Quittiert: Quittiert'
click_link exact_text: 'Unquittiert'
click_link 'Beendigung Quittieren', href: verify_termination_assignment_path(@submitted.id)
assert_text 'Der Einsatz wurde erfolgreich quittiert.'
assert_equal @submitted, AssignmentLog.find_by(assignment_id: @submitted.id).assignment
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment