summaryrefslogtreecommitdiffstats
path: root/test/system
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-25 17:30:07 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-09-25 17:30:07 +0000
commit942eb6e06bf49cc761fb55faec5edf5ff927c116 (patch)
treef72dbaeeff57ce763dbe8fee806b610b4ac9f818 /test/system
parent39101580a9a3ae93ec7ba94384b1e6c24b566db8 (diff)
downloadredmine-942eb6e06bf49cc761fb55faec5edf5ff927c116.tar.gz
redmine-942eb6e06bf49cc761fb55faec5edf5ff927c116.zip
detect Chrome downloaded file more strictly
git-svn-id: http://svn.redmine.org/redmine/trunk@18536 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r--test/system/issues_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index 0ed93a08d..c9228fd1d 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -335,7 +335,9 @@ class IssuesTest < ApplicationSystemTestCase
click_on 'CSV'
click_on 'Export'
- csv = CSV.read(downloaded_file("issues.csv"))
+ # https://github.com/SeleniumHQ/selenium/issues/5292
+ # if issues.csv exists, Chrome creates issues (1).csv, issues (2).csv ...
+ csv = CSV.read(downloaded_file("issues*.csv"))
subject_index = csv.shift.index('Subject')
subjects = csv.map {|row| row[subject_index]}
assert_equal subjects.sort, subjects