Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Oct 20, 2024
1 parent 1c60f5b commit 542aeab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/committee_members/_modal.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="modal fade" id="add_committee_member_modal" data-bs-keyboard="false" tabindex="-1" aria-hidden="true" >
<div class="modal fade" id="add_committee_member_modal" data-bs-keyboard="false" tabindex="-1" aria-hidden="true" data-bs-backdrop="static">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content">
<div class="modal-header">
Expand Down
3 changes: 2 additions & 1 deletion app/views/committee_members/create.js.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<% if @committee_member.errors.blank? %>
$("#committee_members .committee_members_list").append("<%= j render @committee_member %>");
$("#add_committee_member_modal").modal('hide');
$("#add_committee_member_modal").modal('dispose');
$("#add_committee_member_modal").remove();
$("#committee_members .committee_members_list").append("<%= j render @committee_member %>");
<% else %>
$("#add_committee_member_modal .modal-body").html('<%= j render("form") %>');
<% end %>
4 changes: 0 additions & 4 deletions test/system/theses_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ class ThesesTest < ApplicationSystemTestCase
choose('Committee Member')
click_on('Add')

sleep 5

assert_selector 'span', text: 'l1, f1'

click_on('Add committee member')
Expand All @@ -87,8 +85,6 @@ class ThesesTest < ApplicationSystemTestCase
choose('Chair')
click_on('Add')

sleep 5

assert_selector 'span', text: 'l2, f2'

remove1 = 'Remove l1, f1 (Committee Member)'
Expand Down

0 comments on commit 542aeab

Please sign in to comment.