]> source.dussan.org Git - redmine.git/commitdiff
Update capybara (~> 3.25.0) (#31657).
authorGo MAEDA <maeda@farend.jp>
Wed, 24 Jul 2019 10:14:19 +0000 (10:14 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 24 Jul 2019 10:14:19 +0000 (10:14 +0000)
Patch by Takenori TAKAKI and Pavel Rosický.

git-svn-id: http://svn.redmine.org/redmine/trunk@18330 e93f8b46-1217-0410-a6f0-8f06a7374b81

Gemfile
test/system/issues_import_test.rb
test/system/issues_test.rb

diff --git a/Gemfile b/Gemfile
index 37449f09fc7c8e988039aa4e6c8c70a72b681384..2d74ae04110d3f86c22b0f096c983b773f1f956f 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -81,7 +81,7 @@ group :test do
   gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
   # For running system tests
   gem 'puma', '~> 3.7'
-  gem "capybara", '~> 2.13'
+  gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.25.0")
   gem "selenium-webdriver"
   # RuboCop
   gem 'rubocop', '~> 0.72.0'
index 038949aabbd64d7d7bd0e1fcc342883ca13ba2ce..b23f54cf65d083164ec1de350f0b6fd5b7bd9125 100644 (file)
@@ -28,6 +28,7 @@ class IssuesImportTest < ApplicationSystemTestCase
   def test_import_issues_without_failures
     log_user('jsmith', 'jsmith')
     visit '/issues'
+    find('div.contextual>span.drdn').click
     click_on 'Import'
 
     attach_file 'file', Rails.root.join('test/fixtures/files/import_issues.csv')
index 8118277bf9d5ff2d718c882cdb27d03e1f5b55b4..28eccedbc8fbd30fe84b05975eff0031397d7bb4 100644 (file)
@@ -345,6 +345,7 @@ class IssuesTest < ApplicationSystemTestCase
     log_user('admin', 'admin')
 
     visit '/issues/1'
+    page.driver.execute_script('$.fx.off = true;')
     page.first(:link, 'Edit').click
     page.click_link('View all trackers description')
     assert page.has_css?('#trackers_description')