Spec: Fragility fix for quizzes_creation

Closes QA-374

Change-Id: I748a3d643670a2b8454d937820a9d359105d0cd4
Reviewed-on: https://gerrit.instructure.com/128941
Tested-by: Jenkins
Reviewed-by: KC Naegle <knaegle@instructure.com>
Product-Review: Indira Pai <ipai@instructure.com>
QA-Review: Indira Pai <ipai@instructure.com>
This commit is contained in:
Indira Pai 2017-10-07 20:00:14 -05:00
parent 6a77f6fc27
commit e1d0428a9d
1 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,10 @@ module QuizzesCommon
set_question_comment(".question_incorrect_comment", "You know what they say - study long study wrong.")
set_question_comment(".question_neutral_comment", "Pass or fail you are a winner!")
submit_form(question)
button_locator = "//button[contains(.,'Update Question') and not(contains(.,'Create'))]"
update_question_button=driver.find_element(:xpath,button_locator)
scroll_to(update_question_button)
update_question_button.click
wait_for_ajaximations
end