spec: Adding a fix for chrome failure (click nto working first time)
Change-Id: I10bf8f39e33ae334b9d3989f73cc171573b5e752 Reviewed-on: https://gerrit.instructure.com/109763 Tested-by: Jenkins Reviewed-by: KC Naegle <knaegle@instructure.com> Product-Review: Gentry Beckmann <gbeckmann@instructure.com> Tested-by: Gentry Beckmann <gbeckmann@instructure.com> QA-Review: Gentry Beckmann <gbeckmann@instructure.com>
This commit is contained in:
parent
ddf15c4640
commit
e1719b299e
|
@ -40,4 +40,8 @@ class StudentGradesPage
|
|||
def assignment_row(assignment)
|
||||
f("#submission_#{assignment.id}")
|
||||
end
|
||||
|
||||
def toggle_comment_module
|
||||
fj('.toggle_comments_link .icon-discussion:first').click
|
||||
end
|
||||
end
|
||||
|
|
|
@ -203,9 +203,13 @@ describe 'Student Gradebook' do
|
|||
|
||||
it 'should display comments from a teacher on student grades page', priority: "1", test_id: 537621 do
|
||||
user_session(student)
|
||||
|
||||
get "/courses/#{published_course.id}/grades"
|
||||
fj('.toggle_comments_link .icon-discussion:first').click
|
||||
|
||||
student_grades_page.toggle_comment_module
|
||||
unless f('.score_details_table').displayed?
|
||||
# 1st click seems to fail on chrome 1 out of 5 times so adding a second click
|
||||
student_grades_page.toggle_comment_module
|
||||
end
|
||||
expect(fj('.score_details_table span:first')).to include_text('good job')
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue