spec: fix intermittent discussions spec failure
Change-Id: Ia9691aa5b81f50e120684226ede14dfa61b2d94c Reviewed-on: https://gerrit.instructure.com/10359 Reviewed-by: Bryan Madsen <bryan@instructure.com> Tested-by: Bryan Madsen <bryan@instructure.com>
This commit is contained in:
parent
979d7757fc
commit
a56a41367c
|
@ -67,10 +67,10 @@ shared_examples_for "discussions selenium tests" do
|
|||
|
||||
def click_entry_option(discussion_entry, menu_item_selector)
|
||||
li_selector = %([data-id$="#{discussion_entry.id}"])
|
||||
f(li_selector).should be_displayed
|
||||
menu_item = keep_trying_until do
|
||||
f(li_selector).find_element(:css, '.al-trigger').should be_displayed
|
||||
f(li_selector).find_element(:css, '.al-trigger').click
|
||||
fj(li_selector).should be_displayed
|
||||
fj(li_selector).find_element(:css, '.al-trigger').should be_displayed
|
||||
fj(li_selector).find_element(:css, '.al-trigger').click
|
||||
menu_item = f(menu_item_selector)
|
||||
menu_item.should be_displayed
|
||||
menu_item
|
||||
|
|
|
@ -326,6 +326,7 @@ describe "discussions" do
|
|||
entry = @topic.discussion_entries.create!(:user => @student, :message => "new side comment from student", :parent_entry => @entry)
|
||||
get "/courses/#{@course.id}/discussion_topics/#{@topic.id}"
|
||||
wait_for_ajax_requests
|
||||
wait_for_js
|
||||
|
||||
edit_entry(entry, edit_text)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue