Skip to content

Commit ec7d10a

Browse files
jensengBryan Madsen
authored andcommitted
spec: fix occasional failures
Change-Id: Ie752bb68a6022909faac14732ccb74181ce50302 Reviewed-on: https://gerrit.instructure.com/12577 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Bryan Madsen <bryan@instructure.com>
1 parent b54c740 commit ec7d10a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

spec/selenium/profile_communications_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def find_frequency_cell(category_id, channel_id)
9191
@user.save!
9292
get "/profile/communication"
9393
f('.user-pref-check[name=send_scores_in_emails]').click
94+
95+
wait_for_ajaximations
96+
9497
# test data stored
9598
@user.reload
9699
@user.preferences[:send_scores_in_emails].should == true
@@ -114,6 +117,8 @@ def find_frequency_cell(category_id, channel_id)
114117
# Change to a different value and verify flash and the save. (click on the radio)
115118
cell.text.should == 'ASAP'
116119

120+
wait_for_ajaximations
121+
117122
# test data stored
118123
policy.reload
119124
policy.frequency.should == Notification::FREQ_IMMEDIATELY

0 commit comments

Comments
 (0)