Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SJ - Fixing Bootstrap Specs #2050

Merged
merged 5 commits into from
Nov 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
//= require surveyor/responses
//= require surveyor/surveys

// require batch-select
// require bootstrap-table
// require bootstrap-table-export
// require tableExport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
end

it 'should delete the user' do
first('#authorizedUsers button[name="refresh"]').click
wait_for_javascript_to_finish

first('.delete-authorized-user:not(.disabled)').click
confirm_swal
wait_for_javascript_to_finish
Expand All @@ -62,6 +65,9 @@
end

it 'should delete the user and refresh page contents to reflect their updated rights' do
first('#authorizedUsers button[name="refresh"]').click
wait_for_javascript_to_finish

all('.delete-authorized-user:not(.disabled)').last.click
confirm_swal
wait_for_javascript_to_finish
Expand All @@ -84,6 +90,9 @@
end

it 'should redirect to the dashboard landing page' do
first('#authorizedUsers button[name="refresh"]').click
wait_for_javascript_to_finish

all('.delete-authorized-user:not(.disabled)').last.click
confirm_swal
wait_for_javascript_to_finish
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
end

it 'should delete the user' do
first('#authorizedUsers button[name="refresh"]').click
wait_for_javascript_to_finish

first('.delete-authorized-user:not(.disabled)').click
confirm_swal
wait_for_javascript_to_finish
Expand All @@ -63,6 +66,9 @@
end

it 'should redirect to the dashboard landing page' do
first('#authorizedUsers button[name="refresh"]').click
wait_for_javascript_to_finish

first('.delete-authorized-user:not(.disabled)').click
confirm_swal
wait_for_javascript_to_finish
Expand Down