From f9694b8391908825b0d8c8c024fc31fc68b74b63 Mon Sep 17 00:00:00 2001 From: Landon Wilkins Date: Thu, 12 Jan 2017 12:05:02 -0700 Subject: [PATCH] spec: fix new files spec Change-Id: Id80f455dc405f5e57413b1cf03ff9e14a523fb0b Reviewed-on: https://gerrit.instructure.com/99456 Tested-by: Jenkins Reviewed-by: Jon Jensen Product-Review: Jon Jensen QA-Review: Jon Jensen --- spec/selenium/new_files_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/selenium/new_files_spec.rb b/spec/selenium/new_files_spec.rb index ae96f65174d..3fa60094753 100644 --- a/spec/selenium/new_files_spec.rb +++ b/spec/selenium/new_files_spec.rb @@ -200,7 +200,8 @@ describe "better_file_browsing" do driver.action.send_keys(:return).perform # Unable to find matching line from backtrace error is encountered if refresh_page is not used refresh_page - expect(all_files_folders.count).to eq 1 + wait_for_animations + expect(ff('.ef-item-row')).to have_size 1 move(file_name, 0, :cog_icon, destination) wait_for_ajaximations final_destination = destination.split('/').pop