Permalink
Browse files

spec: calendar 2 failure fix should marke undated

Change-Id: I969877c808d028b45828e5d5b4e1cea6f8206920
Reviewed-on: https://gerrit.instructure.com/19230
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>
  • Loading branch information...
1 parent 4ca2c04 commit 0869ec1949703bd10e98489b73b582a2e9af2f90 @kyler-instructure kyler-instructure committed with Bryan Madsen Apr 1, 2013
Showing with 7 additions and 4 deletions.
  1. +7 −4 spec/selenium/calendar2_spec.rb
@@ -369,14 +369,17 @@ def create_middle_day_assignment(name = 'new assignment')
end
it "should make an assignment undated if you delete the start date" do
- pending("failing need to resolve")
create_middle_day_assignment("undate me")
- f(".undated-events-link").click
- f('.fc-event').click
- driver.execute_script("$('.popover-links-holder .edit_event_link').hover().click()")
+ keep_trying_until do
+ fj('.fc-event-inner').click()
+ driver.execute_script("$('.popover-links-holder .edit_event_link').hover().click()")
+ f('.ui-dialog #assignment_due_at').displayed?
+ end
+
replace_content(f('.ui-dialog #assignment_due_at'), "")
submit_form('#edit_assignment_form')
wait_for_ajax_requests
+ f(".undated-events-link").click
f('.fc-event').should be_nil
f('.undated_event_title').text.should == "undate me"
end

0 comments on commit 0869ec1

Please sign in to comment.