Skip to content

Commit

Permalink
Merge pull request #6063 from Formasitchijoh/@outreachy/improve-test-…
Browse files Browse the repository at this point in the history
…suite

Fix: failing test for assigned_article_spec
  • Loading branch information
ragesoss authored Dec 17, 2024
2 parents def64a2 + 677d731 commit 4d38f71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ en:
active_courses: Active Courses
add_trainings: Please add student trainings to your assignment timeline. Assigning training modules is an essential part of Wiki Ed's best practices.
alerts: Alerts
does_not_exist: The Item doesn't exist. Create a Sandbox page and assign yourself to that to receive suggestions.
all_courses: All Courses
already_enrolled: You are already a part of '%{title}'!
already_exists: That already exists for this course!
Expand Down
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 4d38f71

Please sign in to comment.