diff --git a/Gemfile b/Gemfile index 37449f09f..2d74ae041 100644 --- 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' diff --git a/test/system/issues_import_test.rb b/test/system/issues_import_test.rb index 038949aab..b23f54cf6 100644 --- a/test/system/issues_import_test.rb +++ b/test/system/issues_import_test.rb @@ -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') diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index 8118277bf..28eccedbc 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_test.rb @@ -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')