Skip to content

Commit d4432c2

Browse files
purfectliteratureadi-herwana-nus
authored andcommitted
test(rspec): minor testing tweaks
- refine tab label in forum_disbursement_spec - fix flaky test in assessment_management_spec
1 parent 43b8e41 commit d4432c2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

client/app/bundles/course/experience-points/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const translations = defineMessages({
2525
},
2626
forumDisbursementTab: {
2727
id: 'course.experiencePoints.disbursement.DisbursementIndex.forumTab',
28-
defaultMessage: 'Forum Participation Disbursement',
28+
defaultMessage: 'Forum Participation',
2929
},
3030
generalDisbursementTab: {
3131
id: 'course.experiencePoints.disbursement.DisbursementIndex.generalTab',

spec/features/course/assessment_management_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969

7070
find_link(assessment.title, href: course_assessment_path(course, assessment)).click
7171

72-
expect(current_path).to eq(course_assessment_path(course, assessment))
72+
expect(page).to have_current_path(course_assessment_path(course, assessment))
7373
end
7474
end
7575
end

spec/features/course/experience_points/forum_disbursement_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
end
3030
create(:course_discussion_post_vote, post: older_posts[0])
3131
visit course_experience_points_records_path(course)
32-
find('button', text: 'Forum Participation Disbursement').click
32+
find('button', text: 'Forum Participation').click
3333

3434
within find(content_tag_selector(students[0])) do
3535
expect(page).to have_field(type: 'text', with: '100')

0 commit comments

Comments
 (0)