Commit c78c2df8 authored by Tugce Nur Tas's avatar Tugce Nur Tas

add minimal system test for editable notes

parent ed1d17ce
Pipeline #31842 passed with stage
in 39 minutes and 44 seconds
......@@ -17,8 +17,8 @@ h1= t_title(:index)
th Zukunft
th Bemerkungen
th Übernommen
th Quittiert
th.limit-width-15 Notizen
th Quittiert
tbody
- @spvs.each do |spv|
......@@ -49,6 +49,7 @@ h1= t_title(:index)
= api_button('Übernehmen', subject: [spv],
action: :take_responsibility, extra_class: 'm-t-10',
template: 'Übernommen durch <a href="<%= data.link %>"><%= data.email %></a> am <%= data.at %>')
td= render 'update_notes_field', spv: spv
td.index-action-cell.hidden-print
- if spv.reviewed_by.present?
= 'Quittiert von '
......@@ -58,7 +59,6 @@ h1= t_title(:index)
= api_button('Quittieren', subject: [spv],
action: :mark_as_done, extra_class: 'm-t-10',
template: 'Quittiert von <a href="<%= data.link %>"><%= data.email %></a> am <%= data.at %>')
td= render 'update_notes_field', spv: spv
= bootstrap_paginate(@spvs)
......
......@@ -214,4 +214,14 @@ class SemesterProcessVolunteerActionsTest < ApplicationSystemTestCase
assert_not page.has_text? @volunteer3.contact.full_name
end
end
test 'notes are editable' do
first('.update_notes .field_label').click
first('.update_notes .field_input').fill_in(with: 'notesnotesnotes')
first('div.wrapper').click
wait_for_ajax
@spv1.reload
assert page.has_text? 'notesnotesnotes'
assert_equal @spv1.notes,'notesnotesnotes'
end
end
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