spec: Fixing two more gradezilla selenium specs for chrome

Change-Id: Ib1eaafa5613c4fa82a0f3f85043086459cf3a8ca
Reviewed-on: https://gerrit.instructure.com/108648
Tested-by: Jenkins
Reviewed-by: Derek Bender <djbender@instructure.com>
Product-Review: Neil Gupta <ngupta@instructure.com>
QA-Review: Neil Gupta <ngupta@instructure.com>
This commit is contained in:
Anju Reddy 2017-04-14 11:15:17 -06:00 committed by Neil Gupta
parent ae3eb98391
commit 623f0ed9e7
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ module Gradezilla
def open_assignment_options_and_select_by(assignment_id:, menu_item_id:)
column_header = f("#gradebook_grid .slick-header-column[id*='assignment_#{assignment_id}']")
column_header.find_element(:css, '.Gradebook__ColumnHeaderAction').click
f("[data-menu-item-id='#{menu_item_id}']").click
f("span[data-menu-item-id='#{menu_item_id}']").click
end
def select_total_column_option(menu_item_id = nil, already_open: false)
@ -63,7 +63,7 @@ module Gradezilla
end
if menu_item_id
f("[data-menu-item-id='#{menu_item_id}']").click
f("span[data-menu-item-id='#{menu_item_id}']").click
end
end