Skip to content

Commit

Permalink
fix: failing test in assigned_article_spec by waiting for the compone…
Browse files Browse the repository at this point in the history
…nt to be available before interacting with it
  • Loading branch information
Formasitchijoh committed Dec 17, 2024
1 parent f0ed9fc commit 677d731
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/features/assigned_articles_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
visit "/courses/#{course.slug}/articles/assigned"
expect(page).to have_content('Nancy Tuana')
find('a', text: 'Feedback').click
expect(page).to have_no_content(I18n.t('courses.feedback_loading'))
expect(page).to have_selector('textarea.feedback-form')
find('textarea.feedback-form').fill_in with: 'This is a great article!'
click_button 'Add Suggestion'
find('a', text: 'Delete').click
Expand Down

0 comments on commit 677d731

Please sign in to comment.