spec: fix flaky files datepicker selenium specs

sometimes tries to click the new datepicker before the
previous one has finished closing

Change-Id: Ide34f18a027af8d1d1c190b1a1bd98b30a9a8d79
Reviewed-on: https://gerrit.instructure.com/210446
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
James Williams 2019-09-20 13:32:17 -06:00
parent d291632df3
commit f285948546
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ module FilesCommon
ff('.ui-datepicker-trigger.btn')[0].click
fln("15").click
ff('.ui-datepicker-trigger.btn')[0].send_keys(:enter) # close the calendar
wait_for_ajaximations
ff('.ui-datepicker-trigger.btn')[1].click
fln("25").click
ff('.ui-datepicker-trigger.btn')[1].send_keys(:enter) # close the calendar