Skip to content

Commit

Permalink
updated course page test to click OK button in modal on removing avai…
Browse files Browse the repository at this point in the history
…lable article
  • Loading branch information
Formasitchijoh committed Feb 25, 2025
1 parent a998eef commit 696b965
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions spec/features/course_page_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,7 @@ def js_visit(path, count=3)
expect(assigned_articles_section).to have_content 'Education'
expect(Assignment.count).to eq(1)
expect(assigned_articles_section).to have_content 'Remove'
accept_alert do
click_button 'Remove'
end
click_button 'Remove'
click_button 'OK'
expect(assigned_articles_section).not_to have_content 'Education'

Expand Down

0 comments on commit 696b965

Please sign in to comment.